-
Notifications
You must be signed in to change notification settings - Fork 917
Tutorial for CrossWalk Webview Plugin (Android)
###Information
You need to upgrade our plugin to version 1.3.9 in order to use Crosswalk. We've removed "the old way" and do not support it anymore.
###1. Add Crosswalk webview plugin
$> cordova plugin add cordova-plugin-crosswalk-webview###2. Change the AndroidManifest.xml ONLY DO THIS STEP IF YOU HAVE A BLACK-SCREEN-PROBLEM, IF NOT, JUST SKIP THAT STEP In my tests, it was not necessary to change anything here. I will just keep it here as a "backup" for older devices.
In order to change the background color of the WebView as transparent, you need to modify the application settings by your hand.
Open AndroidManifest.xml, find android:theme="@android:style/Theme.Black.NoTitleBar", then change to android:theme="@android:style/Theme.Translucent.NoTitleBar".
Info:
Before 1.3.9, you had to change ANIMATABLE_XWALK_VIEW. There is no need to change ANIMATABLE_XWALK_VIEW anymore, since it is FALSE by default now. If you use "Native Transition Plugin", they force you to set it to true with <preference name="CrosswalkAnimatable" value="true" />. This should not work with our plugin, but you could try it (my test cases were good)
###3. Build and Run For Android, just type these commands:
$> cd HelloMap/
$> cordova build android###Troubleshooting
- Thus it is not related to this plugin, there is currently a bug with Crosswalk 14+. Please use 15+, as the bug is fixed already. If you can't update and you get something like this
platforms/android/src/org/crosswalk/engine/XWalkCordovaCookieManager.java:22: error: cannot find symbol
import org.xwalk.core.internal.XWalkCookieManager;
open platforms/android/src/org/crosswalk/XWalkCordovaCookieManager.java and change
import org.xwalk.core.internal.XWalkCookieManager;to
import org.xwalk.core.XWalkCookieManager;This will fix the error message on compile.
- If you have problems with the "Fullscreen" Button staying on top of the map, follow this one: https://crosswalk-project.org/jira/browse/XWALK-5869
If you get an error, feel free to ask me on the official community or the issue list.
New version 2.0-beta2 is available.
The cordova-googlemaps-plugin v2.0 has more faster, more features.
https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/tree/master/v2.0.0/README.md
New versions will be announced through the official community. Stay tune!
Feel free to ask me on the issues tracker.
Or on the official community is also welcome!
New version 2.0-beta2 is available.
The cordova-googlemaps-plugin v2.0 has more faster, more features.
https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/tree/master/v2.0.0/README.md
