cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <>
Subject [jira] [Commented] (CB-9888) WKWebView on iOS9 on iPhone 5 (32-bit phone) - occasionally resets view
Date Thu, 09 Jun 2016 01:11:20 GMT


Shazron Abdullah commented on CB-9888:

I'm hesitant to add new API when an alternative can exist.

I would prefer to do instead:
1. cordova-plugin-wkwebview-engine listens for the UIApplicationWillEnterForegroundNotification
2. if it gets the notification, it will determine whether it should reload itself

Example in CDVWKWebViewEngine.m:
// this is in the pluginInitialize
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onAppWillEnterForeground:)

- (void) onAppWillEnterForeground:(NSNotification*)notification {
     // put your logic to determine whether to reload here

What do you think?

> WKWebView on iOS9 on iPhone 5 (32-bit phone) - occasionally resets view
> -----------------------------------------------------------------------
>                 Key: CB-9888
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin WKWebViewEngine
>    Affects Versions: 4.0.0
>         Environment: iphone 5, ios9.1
>            Reporter: Jan Pittner
>  Occasionally the entire web view is cleared. White screen. Plugins and other components
remain unaffected. Observed when playing background audio (via CDVSound), going to background,
and running other apps. Audio continues uninterrupted, but bringing the app to foreground
reveals white screen.
> It appears to be related to an issue with the XPC connection being lost between the app
and the wkwebview (log in XCode mentioned the XPC connection being interrupted). (see also: )
> The plugin should detect if the WKWebView has reset and reload the app. 

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message