You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ A Web View plugin for Cordova, focused on providing the highest performance expe
29
29
30
30
This plugin uses WKWebView on iOS and the latest evergreen webview on Android. Additionally, this plugin makes it easy to use HTML5 style routing that web developers expect for building single-page apps.
31
31
32
-
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).
32
+
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).
33
33
34
34
2.x documentation can be found [here](https://github.com/ionic-team/cordova-plugin-ionic-webview/blob/2.x/README.md).
35
35
@@ -146,9 +146,9 @@ Ionic apps work better if the WKWebView is not scrollable, so the scroll is disa
146
146
147
147
***Cordova CLI**: 7.1.0+
148
148
***iOS**: iOS 11+ and `cordova-ios` 4+
149
-
***Android**: Android 4.4+ and `cordova-android` 6.4+
149
+
***Android**: Android 5+ and `cordova-android` 6.4+
150
150
151
-
## Migrating to 4.x
151
+
## Migrating to 5.x
152
152
153
153
1. Remove and re-add the Web View plugin:
154
154
@@ -157,22 +157,24 @@ Ionic apps work better if the WKWebView is not scrollable, so the scroll is disa
1. Apps are now served from HTTP on Android by default.
160
+
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+)
161
+
162
+
1. Since version 2, apps are served from HTTP on Android by default.
161
163
162
164
* 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`.
163
165
164
-
1. Apps are now served from `ionic://` scheme on iOS by default.
166
+
1. Since version 3, apps are served from `ionic://` scheme on iOS by default.
165
167
166
168
* 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`.
167
169
168
170
1. The WebView is not able to display images, videos or other files from file or content protocols or if it doesn't have protocol at all. For those cases use `window.Ionic.WebView.convertFileSrc()` to get the proper url.
169
171
170
-
1. Replace any usages of `window.Ionic.normalizeURL()` with `window.Ionic.WebView.convertFileSrc()`.
172
+
1. Replace any usages of `window.Ionic.normalizeURL()` and `window.wkRewriteURL()` with `window.Ionic.WebView.convertFileSrc()`.
171
173
172
174
* For Ionic Angular projects, there is an [Ionic Native wrapper](https://beta.ionicframework.com/docs/native/ionic-webview):
0 commit comments