[
https://issues.apache.org/jira/browse/CB-9888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15370843#comment-15370843
]
ASF GitHub Bot commented on CB-9888:
------------------------------------
Github user mccraigmccraig commented on the issue:
https://github.com/apache/cordova-plugin-wkwebview-engine/pull/11
definitely it is weird - the test exists because the
`webViewContentProcessDidTerminate` delegate function sometimes doesn't get
called, which is presumably a bug in `WkWebView` itself
it was observed that the empty title is a test for this problem having
occurred, and since there is no official API to determine the same, a weird but
workable test is better than WSODs :)
the difficulty with this bug is that it only occurs irregularly - randomly,
once every few days for me - so it's really hard to test solutions, and i don't
know if the value which is matching the condition is actually `nil` or `""` -
whether the condition can be reduced to `==nil` would depend on first figuring
out the answer to this question
> 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
> Assignee: Shazron Abdullah
>
> 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]