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

Not being able to have any UI interaction when the webview is open on IOS #1074

Open
SIFOR-GAMES opened this issue Jun 8, 2024 · 6 comments

Comments

@SIFOR-GAMES
Copy link

We are having issue intergating the webview on IOS as we have it working just fine on Android but on IOS we are not able to make it possible to have any sort of UI interaction as in when you tap on anything within the UI of the URL called it's not responsive. It only shows what the URl web page content has but when tapped on anything we are not able to figure out a solution for it.

Any chance how to solve this issue?

@KojiNakamaru
Copy link
Member

KojiNakamaru commented Jun 8, 2024

I confirmed that the sample app at the latest master branch (cf. https://github.com/gree/unity-webview/tree/0a5bde16a394b6175339c6429744690d5d889f9b ) worked correctly. My environment is:

  • iPhone SE3 (iOS 17.5.1)
  • Unity 2022.3.32f1
  • Xcode 15.4

@SIFOR-GAMES
Copy link
Author

I tried the latest update. But If the in app browser just gives black screen what could be the issue?

@KojiNakamaru
Copy link
Member

Please follow the following steps to identify the issue.

  1. Run the sample app as is on your device and confirm it runs okay.
  2. Modify the sample app to open your site and see what happens.

If the step 2 fails, please let me know the url or provide a minimum html file that reproduce the issue.

@EmilGlz
Copy link

EmilGlz commented Aug 8, 2024

Hi @KojiNakamaru, hope you are having a good time!

When I build to Android OS, it works perfect. But when I run application in editor in MacOS, some websites open, others are white screen only. And even if it opens, there is a delay untill the website shows up. What can be issue?

I am using the sample code. Haven't tested to IOS and MacOS builds yet.

Editor version: 2022.3.37f1

Thanks

@KojiNakamaru
Copy link
Member

Implementations for Android/iOS just overlay native WebView/WKWebView views over Unity's rendering view. The implementation for Editor is, on the other hand, very tricky one; it renders WKWebView into offscreen for creating a texture and events are not directly processed by WKWebView. Because of these points, it is incomplete and may not work well sometime. It is rather intended for debugging.

@EmilGlz
Copy link

EmilGlz commented Aug 8, 2024

Implementations for Android/iOS just overlay native WebView/WKWebView views over Unity's rendering view. The implementation for Editor is, on the other hand, very tricky one; it renders WKWebView into offscreen for creating a texture and events are not directly processed by WKWebView. Because of these points, it is incomplete and may not work well sometime. It is rather intended for debugging.

Got it, Thank you!

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

3 participants