Is it possible to force cordova inAppBrowser to use Crosswalk webView?

It is possible to use cordova plugins in the pedestrian crossing

And cordova inAppBrowser seems to work fine. But it still uses the old Android browser instead of crosswalk chromium (so it doesn't support the required HTML5 features).

I can see this by checking for example the user agent:

1) inside the application:

Agent: Mozilla / 5.0 (Linux, Android 4.2.2; PHONENAME) AppleWebKit / 537.36 (KHTML, like Gecko) Chrome / 36.0.1985.143 Mobile Crosswalk / 7.36.154.13 Mobile Safari / 537.36 Response headers

2) inside inAppBrowser:

Mozilla / 5.0 (Linux; U; Android 4.2.2; en-us; PHONENAME) AppleWebKit / 534.30 (KHTML, like Gecko) Version /4.0 Mobile Safari / 534.30

+3


source to share


2 answers


The Cordova inAppBrowser plugin is implemented using the WebView component of the system, there are several differences between the WebKit WebView and Crosswalk WebView interfaces, so the inAppBrowser Cordova cannot just change to fully compatible with the Crosswalk web browser.

But if your requirement is simple, like just showing one html5 page using inAppBrower, it's easy to show Crosswalk webview with a few changes in inAppBrowser plugin.



Can you provide more details on how you are using the inAppBrowser plugin?

+1


source


You can use:

https://github.com/Shoety/cordova-plugin-inappbrowserxwalk



It is anappbrowser which uses crossroads instead of WebView system.

0


source







All Articles