Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10817

The webView should reload when a crash occurs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      With the iOS9 API, it is now possible to detect when the WKProcess dies. See the API details for reference:
      PR: https://github.com/apache/cordova-plugin-wkwebview-engine/pull/5

      https://developer.apple.com/library/ios/releasenotes/General/iOS90APIDiffs/Objective-C/WebKit.html

      When it does, the content is blanked out and the URL becomes nil. This results in a "white screen" that can only be resolved by restarting the app. See this for more info: https://bugs.webkit.org/show_bug.cgi?id=148685

      I've Implemented the method: - (void)webViewWebContentProcessDidTerminate:(WKWebView *)webView which will be called when the process dies and reload the webView.

      Attachments

        Issue Links

          Activity

            People

              shazron Shazron Abdullah
              shazron Shazron Abdullah
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: