I created a cordova project adding 2 platforms (android, ios) with some plugin. One of them is the last prologue-Trojan-turn-spider-web (1.3.1). I chose iOS8 and Android 4.0 as the target Android. Everything works well, I can build an Android and iOS platform too.
In my config.xml file, this line is added automatically:
... <preference name="xwalkVersion" value="14+" /> <preference name="xwalkCommandLine" value="--disable-pull-to-refresh-effect" /> <preference name="xwalkMode" value="embedded" /> ...
For android, I'm sure I'm using the crosswalk plugin. With the Chrome inspector, I see that navigator.userAgent is set to Crosswalk similar to this image
My android-debug.apk package is now split into android-debug-armv7.apk and android-debug-x86.apk, and apk size is close to 25Mb.
But for iOS, I canβt reveal if the crosswalk works or not. In the safari inspector of my iOS virtual machine, the navigator.userAgent variable:
"Mozilla/5.0 (iPhone; CPU iPhone OS 8_4 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12H141 (140222960683616)"
How can I be sure which browser I run on my iOS? And, if the config.xml configuration is not enough, how can I install crosswalk-webview fos iOS?
I read the quick start guide for the crossroads for iOS, but I think this is not so clear for those who usually use the CLI cordova. And nothing is written in the documentation for the npm cordova-plugin-crosswalk-webview package .
UPDATE:
Follow the cordova exit:
$ cordova plugin list cordova-plugin-crosswalk-webview 1.3.1 "Crosswalk WebView Engine" $ cordova platforms add ios Adding ios project... iOS project created with cordova-ios@3.9.2 Running command: /Users/jedi/prj/appMobile/hooks/after_prepare/010_add_platform_class.js /Users/jedi/prj/appMobile add to body class: platform-ios Running command: /Users/jedi/prj/appMobile/hooks/after_prepare/030_resource_files.js /Users/jedi/prj/appMobile ... Installing "cordova-plugin-console" for ios Installing "cordova-plugin-crosswalk-webview" for ios Installing "cordova-plugin-device" for ios ..
ios cordova webview crosswalk-runtime
jedi
source share