{"_id":"@dpogue/cordova-plugin-wkwebview-engine","_rev":"3-ca1659fc2689562698ad07d704fd3b25","name":"@dpogue/cordova-plugin-wkwebview-engine","description":"The official Apache Cordova WKWebView Engine Plugin","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@dpogue/cordova-plugin-wkwebview-engine","version":"1.0.1","description":"The official Apache Cordova WKWebView Engine Plugin","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine.git"},"keywords":["cordova","wkwebview"],"author":{"name":"Apache Cordova"},"license":"Apache-2.0","gitHead":"01f3a290c4eda9adc254f2fd9e9a804e3fcc8322","_id":"@dpogue/cordova-plugin-wkwebview-engine@1.0.1","_shasum":"6223936765b3afa97959bf4a4c788df86ad094bf","_from":".","_npmVersion":"3.7.1","_nodeVersion":"5.5.0","_npmUser":{"name":"dpogue","email":"darryl@dpogue.ca"},"dist":{"shasum":"6223936765b3afa97959bf4a4c788df86ad094bf","tarball":"https://registry.npmjs.org/@dpogue/cordova-plugin-wkwebview-engine/-/cordova-plugin-wkwebview-engine-1.0.1.tgz","integrity":"sha512-wCjQZmnLPhWskVUvraatt2TWWZOk1UcGlhB/BVP7cMS7ATDuKguXbWeW4D5c0Dv9mOhR7qGrDYIS57xhqP/CGA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICE+YiHrXW5xAccWoI1HH9pYHAy8d6Ed0vT3JpEUgvQ2AiEA/aZSRBXSb/ffefY3afykSVaAnz8XtVzY/u5+eQouPK4="}]},"maintainers":[{"name":"dpogue","email":"darryl@dpogue.ca"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/cordova-plugin-wkwebview-engine-1.0.1.tgz_1454538641073_0.9324055686593056"}}},"readme":"<!--\n# license: Licensed to the Apache Software Foundation (ASF) under one\n#         or more contributor license agreements.  See the NOTICE file\n#         distributed with this work for additional information\n#         regarding copyright ownership.  The ASF licenses this file\n#         to you under the Apache License, Version 2.0 (the\n#         \"License\"); you may not use this file except in compliance\n#         with the License.  You may obtain a copy of the License at\n#\n#           http://www.apache.org/licenses/LICENSE-2.0\n#\n#         Unless required by applicable law or agreed to in writing,\n#         software distributed under the License is distributed on an\n#         \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n#         KIND, either express or implied.  See the License for the\n#         specific language governing permissions and limitations\n#         under the License.\n-->\n\nCordova WKWebView Engine\n======\n\nThis plugin makes `Cordova` use the `WKWebView` component instead of the default `UIWebView` component, and is installable only on a system with the iOS 9.0 SDK. \n\nIn iOS 9, Apple has fixed the [issue](http://www.openradar.me/18039024) present through iOS 8 where you cannot load locale files using file://, and must resort to using a local webserver. **However, you are still not able to use XHR from the file:// protocol without [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS) enabled on your server.**\n\nInstallation\n-----------\n\nThis plugin needs to use at least cordova-ios 4.0.0.\n\nTo test this while it is still in development:\n\n    cordova create wkwvtest my.project.id wkwvtest\n    cd wkwvtest\n    cordova platform add https://github.com/apache/cordova-ios.git#master\n    cordova plugin add https://github.com/apache/cordova-plugin-wkwebview-engine.git#master\n\t\n\nOnce cordova-ios 4.0.0 and the plugin is released on npm, you can just do:\n\n    cordova create wkwvtest my.project.id wkwvtest\n    cd wkwvtest\n    cordova platform add ios@4\n    cordova plugin add cordova-plugin-wkwebview-engine\n\n\nYou also must have Xcode 7 (iOS 9 SDK) installed. Check which Xcode command-line tools is in use by running:\n\n    xcode-select --print-path\n\n\nNotes\n------\n\nOn an iOS 8 system, Apache Cordova during runtime will switch to using the UIWebView engine instead of using this plugin. If you want to use WKWebView on both iOS 8 and iOS 9 platforms, you will have to resort to using a local webserver.\n\nWe have an [experimental plugin](https://github.com/apache/cordova-plugins/tree/master/wkwebview-engine-localhost) that does this. You would use that plugin instead of this one.\n\nApplication Transport Security (ATS) in iOS 9\n-----------\n\nThe next released version of the [cordova-cli 5.4.0](https://www.npmjs.com/package/cordova) will support automatic conversion of the [&lt;access&gt;](http://cordova.apache.org/docs/en/edge/guide/appdev/whitelist/index.html) tags in config.xml to Application Transport Security [ATS](https://developer.apple.com/library/prerelease/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW33) directives. Upgrade to the version 5.4.0 to use this new functionality.\n\nLimitations\n--------\n\nIf you are upgrading from UIWebView, please note the limitations of using WKWebView as outlined in our [issue tracker](https://issues.apache.org/jira/issues/?jql=project%20%3D%20CB%20AND%20labels%20%3D%20wkwebview-known-issues).\n\nApple Issues\n-------\n\nThe `AllowInlineMediaPlayback` preference will not work because of this [Apple bug](http://openradar.appspot.com/radar?id=6673091526656000). \n\nPermissions\n-----------\n\n#### config.xml\n\n        <feature name=\"CDVWKWebViewEngine\">\n            <param name=\"ios-package\" value=\"CDVWKWebViewEngine\" />\n        </feature>\n\n        <preference name=\"CordovaWebViewEngine\" value=\"CDVWKWebViewEngine\" />\n\nSupported Platforms\n-------------------\n\n- iOS\n","maintainers":[{"name":"dpogue","email":"darryl@dpogue.ca"}],"time":{"modified":"2022-06-12T17:20:50.482Z","created":"2016-02-03T22:30:42.059Z","1.0.1":"2016-02-03T22:30:42.059Z"},"keywords":["cordova","wkwebview"],"repository":{"type":"git","url":"https://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine.git"},"author":{"name":"Apache Cordova"},"license":"Apache-2.0","readmeFilename":"README.md"}