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

[iOS 8] cordova-plugin-wkwebview-engine breaks Cordova iOS 4.0.0 under iOS 8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 4.0.0
    • None
    • Cordova tools 5.4.1
      Cordova iOS platform 4.0.1
      iOS Simulator 8.4
      cordova-plugin-wkwebview-engine plugin

    Description

      When launching on iOS 8.4 simulator the following error breaks JS execution early on:
      ios-wkwebview-exec.js:127 TypeError: undefined is not an object (evaluating 'window.webkit.messageHandlers')

      So inclusion of 'cordova-plugin-wkwebview-engine' plugin breaks support of iOS versions previous to 9.0. I assume ios-wkwebview-exec.js should have environment checks before using WKWebView bridge...

      Exclusion of the same plugin breaks the project at all. Are there any fallback mechanics in place?

      Attachments

        1. ios-wkwebview-exec.js
          7 kB
          James Andersen

        Issue Links

          Activity

            People

              shazron Shazron Abdullah
              IvanKarpan Ivan Karpan
              Votes:
              4 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: