Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any alternative for the cordova-plugin-crosswalk-webview that is currently maintained?

I have a Cordova project that is using the Android System WebView (as it should by default), but the problem is:

  • The Android is in a wearable device, which means its System WebView component (version 55) is not upgradable;
  • My application needs a newer version of the Chromium WebView (version 77+);
  • Although I cannot upgrade the System WebView component, I managed to install a newer version of it (version 80) and it's shown on the Settings' applications list.

I know that, on earlier Android versions, Crosswalk (https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview) did the trick to get rid of the System WebView, but it is not maintained anymore. The v3 (https://github.com/ardabeyazoglu/cordova-plugin-crosswalk-webview-v3) says, "only bug fixes", but when built, it seems to change nothing in the project, because the application still uses WebView version 55.

Does anybody know how to import a specific WebView version (i.e. 80) in Cordova, even if it's not the System's default? Or even a trick that I could do to use Crosswalk v3 the right way would help a lot!

Thanks you!

like image 388
amiltonjr Avatar asked Mar 13 '20 19:03

amiltonjr


People also ask

What is crosswalk Webview?

The Crosswalk Webview Engine plugin changes the default Webview to Crosswalk, which provides consistent, predictable behavior by reducing Android device fragmentation. Crosswalk uses the latest web innovations and APIs, providing a feature rich experience on all Android 4.0+ devices.

Does Cordova use Android Webview?

A Web View plugin for Cordova, focused on providing the highest performance experience for Ionic apps (but can be used with any Cordova app). This plugin uses WKWebView on iOS and the latest evergreen webview on Android.


1 Answers

There is this fork that is updated to chromium 77

https://github.com/Constaline/cordova-plugin-crosswalk-webview-v3/

you have to install it from github directly with cordova plugin add https://github.com/Constaline/cordova-plugin-crosswalk-webview-v3/

but I wasn't able to make my project build after installing the plugin

like image 63
jcesarmobile Avatar answered Sep 28 '22 19:09

jcesarmobile