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

craig mcmillan commented on CB-9888:
------------------------------------

cool, just got confirmation that this reload technique based on title tag is 
helping... from my phone logs as my app resumes

in this first trace the app came back with a white-screen, the WKWebView title 
was empty and the app reloaded - recovery !
{noformat}
Jun  9 20:07:03 gluupi YapDev[1940] <Warning>: CDVWKWebViewEngine 
reloadIfRequired
Jun  9 20:07:03 gluupi YapDev[1940] <Warning>: CDVWKWebViewEngine 
reloadIfRequired WKWebView.title: 
Jun  9 20:07:03 gluupi YapDev[1940] <Warning>: CDVWKWebViewEngine 
reloadIfRequired reload: 1
Jun  9 20:07:03 gluupi kernel[0] <Notice>: Sandbox: YapDev(1940) deny(1) 
file-issue-extension /
Jun  9 20:07:03 gluupi YapDev[1940] <Warning>: IAB.close() called but it was 
already closed.
Jun  9 20:07:06 gluupi YapDev[1940] <Warning>: THREAD WARNING: 
['PushNotification'] took '49.469971' ms. Plugin should use a background thread.
Jun  9 20:07:06 gluupi YapDev[1940] <Warning>: INFO: INFO 
[er-webui.platform.init:23] - initialise - platform:  iOS
{noformat}

this trace is a normal resume, and the WKWebView still has its title
{noformat}
Jun  9 20:07:23 gluupi YapDev[1940] <Warning>: CDVWKWebViewEngine 
reloadIfRequired
Jun  9 20:07:23 gluupi YapDev[1940] <Warning>: CDVWKWebViewEngine 
reloadIfRequired WKWebView.title: Yapster
Jun  9 20:07:23 gluupi YapDev[1940] <Warning>: CDVWKWebViewEngine 
reloadIfRequired reload: 0
Jun  9 20:07:23 gluupi YapDev[1940] <Warning>: INFO: INFO 
[er-webui.platform.resume:22] - cordova event: resume
{noformat}

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to