Open rohanawa opened 2 years ago
ios shows blank screen on opening an external url using inapp browser plugin.
We're encountering the same issue? Does anyone know how to avoid it?
A blank white screen generally indicates a failure in loading the document, which can happen either in the JS side (the web page itself has an error) or on the native side (the provided URL is bad).
Since the page seems to work on Android as the OP claimed, it is likely a JS side issue, as if the URL itself is bad, it would fail on both platforms.
If it is a JS/webpgae side issue, then using Mac's Safari, you can access the dev tools to remotely debug the iOS safari webview. You'll need to use an iOS simulator or have the iOS device connected via USB in order to use this feature.
Note that Safari's web inspector doesn't capture events or console logs that occurred before the inspector was attached, so if the issue is a loading issue, you may need to refresh the webview after the inspector is attached, which you can do using cmd + r
key combination, while the inspector window is focused.
Note that your application will contain 2 webview contexts, one is the Cordova Webview context (your main app) and the other will be the in app browser, which is it's own webview instance.
I've written a blog post that goes into more detail on how to get the Safari Web Inspector running to debug cordova apps, but the same should apply to in app webviews as well.
Using the web inspector will be the best way to gain further insights on what is happening. Do let me know if this helps.
@breautek Thank you for your response. Unfortunately, it's not occured all the time, we tried debugging on it, but it's hard to replicate the issue.
look's like it's just a hardware issue your cpu not quite strong haha , i was running a test of 8 hours open and close the webview with example.com and the issue happened , look like the hidden=yes mode of inappbrowser is more efficient in this case
Issue Type
Description
Information
Command or Code
Environment, Platform, Device
Version information
Checklist