ionic-team / cordova-plugin-wkwebview-engine

Mirror of Apache Cordova wkwebview engine plugin
Apache License 2.0
289 stars 66 forks source link

White screen bug #118

Open abomadi opened 7 years ago

abomadi commented 7 years ago

here is the steps to regenrate 1- install cordova network plugin 2- put listen on internet disconnect 3- put app in sleep / background 4- wake the app (resume) 5- an alert has been triggered using network plugin saying no internet connection Then the app displays white screen and freezes

pablomaurer commented 7 years ago

Our clients are also reporting often about a whitescreen, but there is no way I can reproduce it, since they are not near by me. On my exactly same device with same ios-version and same app-version it works.

Related:

114

105

4

47

kabus202 commented 7 years ago

I have also problems with white screen flickering after resuming the app. dunno if it is related.

pablomaurer commented 7 years ago

Maybe this isn't webview and instead the cordova-statusbar plugin see: CB-12141 CB-12436 fixed commit

So it got already fixed but not released yet. Will be released with statusbar 2.2.2

antoine92190 commented 7 years ago

I also experience this issue when putting my app in background and open it back. But sometimes it appears and sometimes not.

The bug is definitely coming from this plugin, as when I remove the plugin I cannot reproduce it.

It seems the plugin reloads the page after the app was put in background. I can see the following log in XCode: CDVWKWebViewEngine shouldReloadWebView:: I think the white screen appears when the reloading process is slower than it should.

kabus202 commented 7 years ago

@antoine92190 can you provide your plugin list here

antoine92190 commented 7 years ago

Here is my plugin list:

com.googlemaps.ios 2.2.0 "Google Maps SDK for iOS" com.verso.cordova.clipboard 0.1.0 "Clipboard" cordova-plugin-app-event 1.2.0 "Application Events" cordova-plugin-calendar 4.5.5 "Calendar" cordova-plugin-camera 2.3.1 "Camera" cordova-plugin-compat 1.1.0 "Compat" cordova-plugin-console 1.0.5 "Console" cordova-plugin-device 1.1.4 "Device" cordova-plugin-facebook4 1.7.4 "Facebook Connect" cordova-plugin-file 4.3.2 "File" cordova-plugin-firebase 0.1.20 "Google Firebase Plugin" cordova-plugin-geolocation 2.4.2 "Geolocation" cordova-plugin-googlemaps 1.4.0 "phonegap-googlemaps-plugin" cordova-plugin-http 1.2.0 "SSL Pinning" cordova-plugin-inappbrowser 1.6.1 "InAppBrowser" cordova-plugin-ios-disableshaketoedit 1.0.0 "iOS Disable Shake to Edit" cordova-plugin-ios-no-export-compliance 0.0.1 "iOS No Export Compliance" cordova-plugin-network-information 1.3.2 "Network Information" cordova-plugin-splashscreen 4.0.2 "Splashscreen" cordova-plugin-statusbar 2.2.1 "StatusBar" cordova-plugin-whitelist 1.3.1 "Whitelist" cordova-plugin-wkwebview-engine 1.1.4-dev "Cordova WKWebView Engine" cordova-plugin-x-socialsharing 5.1.8 "SocialSharing" de.appplant.cordova.plugin.local-notification 0.8.5-dev "LocalNotification" es6-promise-plugin 4.1.0 "Promise" ionic-plugin-keyboard 2.2.1 "Keyboard"

kabus202 commented 7 years ago

I solved my problem removing cordova-plugin-inappbrowser. Can you try it? You also have to remove and add platform.

antoine92190 commented 7 years ago

I tried it but it didn't change anything in my case

kabus202 commented 7 years ago

It's also firebase related. removing cordova-plugin-inappbrowser and cordova-plugin-firebase will fix your problem for sure. But unfortunately, I need the firebase plugin. I also tried the FCM plugin but had the same results.

made an issue request @arnesson repo https://github.com/arnesson/cordova-plugin-firebase/issues/196

antoine92190 commented 7 years ago

Yes I also need the firebase plugin. I upvoted your issue on the cordova firebase repo, I hope they can fix it soon !

Allan-Nava commented 7 years ago

@kabus202

I solved my problem removing cordova-plugin-inappbrowser. Can you try it? You also have to remove and add platform.

I have the same issue when I watch video with custom jwplayer plugin and I come back on ionic app...