cordova-plugin-ionic-webview
Advanced tools
Comparing version 5.0.0 to 5.0.1
{ | ||
"name": "cordova-plugin-ionic-webview", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Ionic Web View Engine Plugin", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -32,3 +32,3 @@ <!-- | ||
Note: This repo and its documentation are for `cordova-plugin-ionic-webview` @ `4.x`, which uses the new features that may not work with all apps. See [Requirements](#plugin-requirements) and [Migrating to 4.x](#migrating-to-4x). | ||
Note: This repo and its documentation are for `cordova-plugin-ionic-webview` @ `5.x`, which uses the new features that may not work with all apps. See [Requirements](#plugin-requirements) and [Migrating to 5.x](#migrating-to-5x). | ||
@@ -150,5 +150,5 @@ 2.x documentation can be found [here](https://github.com/ionic-team/cordova-plugin-ionic-webview/blob/2.x/README.md). | ||
* **iOS**: iOS 11+ and `cordova-ios` 4+ | ||
* **Android**: Android 4.4+ and `cordova-android` 6.4+ | ||
* **Android**: Android 5+ and `cordova-android` 6.4+ | ||
## Migrating to 4.x | ||
## Migrating to 5.x | ||
@@ -162,7 +162,9 @@ 1. Remove and re-add the Web View plugin: | ||
1. Apps are now served from HTTP on Android by default. | ||
1. If using `cordova-android` < 9, make sure you have `<preference name="android-minSdkVersion" value="21" />` in the config.xml as this version of the plugin only supports Android 5+ (SDK 21+). If using `cordova-android` >= 9 is not neccessary as `cordova-android` 9 only supports Android 5.1+ (SDK 22+) | ||
1. Since version 2, apps are served from HTTP on Android by default. | ||
* The default origin for requests from the Android WebView is `http://localhost`. If `Hostname` and `Scheme` preferences are set, then origin will be `schemeValue://HostnameValue`. | ||
1. Apps are now served from `ionic://` scheme on iOS by default. | ||
1. Since version 3, apps are served from `ionic://` scheme on iOS by default. | ||
@@ -173,3 +175,3 @@ * The default origin for requests from the iOS WebView is `ionic://localhost`. If `Hostname` and `iosScheme` preferences are set, then origin will be `iosSchemeValue://HostnameValue`. | ||
1. Replace any usages of `window.Ionic.normalizeURL()` with `window.Ionic.WebView.convertFileSrc()`. | ||
1. Replace any usages of `window.Ionic.normalizeURL()` and `window.wkRewriteURL()` with `window.Ionic.WebView.convertFileSrc()`. | ||
@@ -179,3 +181,3 @@ * For Ionic Angular projects, there is an [Ionic Native wrapper](https://beta.ionicframework.com/docs/native/ionic-webview): | ||
``` | ||
npm install @ionic-native/ionic-webview@beta | ||
npm install @ionic-native/ionic-webview@latest | ||
``` | ||
@@ -182,0 +184,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
143176
184
1