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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: None
    • Environment:

      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

          Issue Links

            Activity

              People

              • Assignee:
                shazron Shazron Abdullah
                Reporter:
                IvanKarpan Ivan Karpan
              • Votes:
                4 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: