gree / unity-webview

zlib License
2.27k stars 687 forks source link

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

Open SIFOR-GAMES opened 3 months ago

SIFOR-GAMES commented 3 months ago

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 commented 3 months ago

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:

SIFOR-GAMES commented 3 months ago

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

KojiNakamaru commented 3 months ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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!