For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.


Crosswalk WebView (Android)

We can replace the default WebView in your MobileFirst Cordova app with Crosswalk.


Overview

From MobileFirst V8.0.0 you can integrate Crosswalk WebView with your Cordova MobileFirst app.

Crosswalk provides an improved WebView using an internal browser based on Chrome.

To get started with Crosswalk install the Crosswalk plug-in to our Cordova project:

cordova plugin add cordova-plugin-crosswalk-webview

Once your app is created, your res\xml\config.xml file contains this line and the Crosswalk WebView is automatically chosen:

<preference name="webView" value="org.crosswalk.engine.XWalkWebViewEngine" />

Note: The cordova-plugin-crosswalk-webview plug-in may use deprecated NDK integration. To allow Android Studio to build the application add a file name gradle.properties to the platform\android folder containing the following line:

android.useDeprecatedNdk=true

For more information about loading the MobileFirst Crosswalk WebView see Loading the WebView.

Parent topic: Cordova WebView