Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't open with null link html. #595

Closed
iletai opened this issue Sep 23, 2020 · 2 comments
Closed

Can't open with null link html. #595

iletai opened this issue Sep 23, 2020 · 2 comments

Comments

@iletai
Copy link

iletai commented Sep 23, 2020

I had facing issues when trying to open a share button in the same link (https://developers.facebook.com/docs/plugins/share-button/) on the website. Webview stuck and do nothing return, but only platform ios have issues, android still success.
And error return: CallOnError[Error Domain=NSURLErrorDomain Code=-999 "(null)".

@iletai iletai closed this as completed Sep 27, 2020
@KojiNakamaru
Copy link
Member

I'm sorry for this slow reply. The cause is that the facebook share button requires another window to be opened by specifying target="_blank", which is currently not supported by this plugin. There is, however, an experimental implementation #388 that allows one extra window open. Replacing Assets/Plugins/iOS/WebView.mm with this experimental implementation https://github.com/gree/unity-webview/blob/38458bce76b16fb2ca286d34a606f4f35f2a5c6b/plugins/iOS/WebView.mm could solve the issue.

@iletai
Copy link
Author

iletai commented Sep 28, 2020

I'm sorry for this slow reply. The cause is that the facebook share button requires another window to be opened by specifying target="_blank", which is currently not supported by this plugin. There is, however, an experimental implementation #388 that allows one extra window open. Replacing Assets/Plugins/iOS/WebView.mm with this experimental implementation https://github.com/gree/unity-webview/blob/38458bce76b16fb2ca286d34a606f4f35f2a5c6b/plugins/iOS/WebView.mm could solve the issue.

Thank you for your support. I will try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants