[
https://issues.apache.org/jira/browse/CB-9888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14980220#comment-14980220
]
Jan Pittner edited comment on CB-9888 at 10/29/15 10:34 AM:
------------------------------------------------------------
The Telerik plugin (at https://github.com/IjzerenHein/WKWebView ) has added
basic crash detection to see if the page is returning a title or not. It's
pretty basic, and unfortunately has to poll the page to see if it's returning a
title tag, but it might be better than nothing. I am going to look at modifying
this so that rather than polling, it'll check on foreground - if the title
isn't there, display a "Ooops, something went wrong" page like Gmail does, and
then reload that way. So this may not be an XPC issue but rather the
com.apple.WebKit process crashing due to memory leaks. (I'm profiling my app
now to see if any new memory leaks are present to confirm this is the case).
was (Author: jan pittner):
The Telerik plugin (at https://github.com/IjzerenHein/WKWebView ) has added
basic crash detection to see if the page is returning a title or not. It's
pretty basic, and unfortunately has to poll the page to see if it's returning a
title tag, but it might be better than nothing. I am going to look at modifying
this so that rather than polling, it'll check on foreground - if the title
isn't there, display a "Ooops, something went wrong" page like Gmail does, and
then reload that way.
> WKWebView on iOS9 on iPhone 5 - occasionally resets view
> --------------------------------------------------------
>
> Key: CB-9888
> URL: https://issues.apache.org/jira/browse/CB-9888
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS, 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]