user1872384
user1872384

Reputation: 7127

Ionic wkwebview random white screen

I'm using ionic version 1.2.4 with wkwebview*

White screen will occur randomly in the app. The app is very huge and I couldn't replicate the white screen issue using the same steps.

Is this cause by memory issue when navigating to another view?

If yes how can I increase the memory exponentially in my code?

*https://github.com/apache/cordova-plugins/tree/master/wkwebview-engine-localhost

It doesn't happen in a iOS simulator and only occurs in physical devices. Is the memory for the iOS simulator infinite? which explains why it doesnt hit this memory issue?

Error logs:

https://www.dropbox.com/s/97yfy0yieq2yccu/errorLogWhiteScreen20170214?dl=0

https://www.dropbox.com/s/j1nqyizp932x0t5/errorLogWhiteScreen20170214_2?dl=0

Upvotes: 11

Views: 1173

Answers (1)

Paranoid Android
Paranoid Android

Reputation: 5037

bit late to the party but if it happens only on iOS, we fixed it with:

//the following hack fixes the random white screen when tapping quickly
if (window.device) {
    if (window.device.platform === PARAMETERS.IOS) {
        console.log('iOS hack done.');
        $ionicConfigProvider.views.maxCache(0);
        $ionicConfigProvider.views.swipeBackEnabled(false);
    }
}

This is Ionic 1.3

Upvotes: 0

Related Questions