ionic-team / ionic-team/cordova-plugin-ionic-webview
iOS 12, Web View reloads, possibly when using high amount of resources.
- Dominant language
- Objective-C
- Stars
- 493
- Forks
- 410
- PR merge metrics
- No merged PRs in 30d
Description
cli-8.1.1 (iOS 4.5.5)
cordova-plugin-ionic-webview 4.0.0
Built with PhoneGap Build
Ever since iOS 12 (up to 12.2) my Apps users have been reporting random crashes, either white screens or the App attempting to reload. Particularly on iPad.
I'm using cordova-plugin-ionic-webview on a PhoneGap Build project (diagnosing this issue has taught me to never use PGB again!), not as an ionic App. As such, I'm having issues running the app on emulators and getting at native logs that show anything useful.
The logging framework I use for in App JavaScript events doesn't show any JavaScript errors, but does show things are going normally and then the web view appears to reload for no reason (e.g the logging shows normal activity, then in the middle of a screen loading, the next log is code that only runs on app initialization - on the apps entry point - and should never be running again during the middle of a screen rendering, which indicates the web view has reloaded.
The crashes don't always happen at the exact same time or place on App, but the screen that crashes the most often is the most resource intensive screen of the App, including making dozens of requests to an external API. So it's possibly running out of Memory/CPU and causing the reload. Is that expected behavior? It seems strange to me that I've never seen similar behavior on much older Android devices and older versions of iOS where the hardware is likely to be much worse than what someone on iOS 12 is using. I also can't reproduce crashes in browser.
This issue may be relevant: https://stackoverflow.com/questions/51308181/cordova-app-reloads-itself-on-ios-12-iphonex
Contributor guide
Assessment
This issue has not been assessed yet.