Skip to content

Are Cordova WebViews different from system WebViews? #356

Answered by erisu
jmarshall-com asked this question in Q&A
Discussion options

You must be logged in to vote

Cordova does not have any custom WebViews. It uses the System WebView provided by Android and iOS.

Per MDN, the import statements were introduced in Chrome 80 and Safari 15.

Since Cordova-Android 9.x release, the defined minimum supported SDK is 22 (Android 5.1).

Starting in Android 5.0 (SDK 21), the WebView was moved to an APK so it can be updated separately to the platform. End-users should be able to upgrade to the latest version of Chromium that supports the import statement. But this relies on the end-user to update their browser regularly. If you change the minimum target to something lower than SDK 21, those users will have issues with the import statement.

As for iOS users, Safari…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jmarshall-com
Comment options

@breautek
Comment options

Answer selected by NiklasMerz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants