cordova-plugin-meteor-webapp icon indicating copy to clipboard operation
cordova-plugin-meteor-webapp copied to clipboard

Webapp Forced Reload blank page

Open Nauzer opened this issue 4 years ago • 0 comments

Sometimes on iOS the WKWebView is forced to reload because of the following code:

From cordova-plugin-wkwebview-engine src/ios/CDVWKWebViewEngine.m

- (void)webViewWebContentProcessDidTerminate:(WKWebView *)webView
{
    [webView reload];
}

This causes the WebView to reload but in combination with cordova-plugin-meteor-webapp it causes the WebView to show a white / blank screen which is in fact an empty index.html with empty

and tags.

Willing to make a PR if someone could maybe give some clues on where to start and how to handle this scenario and handle the reload gracefully here. I'm not a Native guru ;-) Would it perhaps be possible to handle webViewWebContentProcessDidTerminate method directly in this plugin?

For me it seems to be triggered by OOM scenarios when taking & uploading photos in our app. Specifically when returning from Camera view after picking a picture (using cordova-plugin-camera).

Nauzer avatar May 20 '20 14:05 Nauzer