cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
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

    [ https://issues.apache.org/jira/browse/CB-9888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15321740#comment-15321740
] 

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
notification
2. if it gets the notification, it will determine whether it should reload itself

Example in CDVWKWebViewEngine.m:
{code}
// this is in the pluginInitialize
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onAppWillEnterForeground:)
                                                     name:UIApplicationWillEnterForegroundNotification
object:nil];

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

What do you think?

> WKWebView on iOS9 on iPhone 5 (32-bit phone) - occasionally resets view
> -----------------------------------------------------------------------
>
>                 Key: CB-9888
>                 URL: https://issues.apache.org/jira/browse/CB-9888
>             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:
http://stackoverflow.com/questions/25854143/wkwebview-intermittent-blank-screen-issue )
> The plugin should detect if the WKWebView has reset and reload the app. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message