Cordova-plugin-crosswalk-webview on iOS

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 .. 
+7
ios cordova webview crosswalk-runtime
source share
2 answers

crosswalk on iOS uses its own WKWebView , which has indexed DB support, you can run this javascript code to check if it has a WKWebView

 if (window.indexedDB) { alert('WKWebView'); } else { alert('UIWebView'); } 
+2
source share

The Cordova footpath plugin only adds cross-running for android.

Please note that the transition to iOS is necessary for using webkit for applications in the application store, so it uses WKWebView. (It uses webkit instead of the usual blink engine based engine)

See Jesse's answer to my question: Cordova + Crosswalk iOS still uses UIWebView

+1
source share

All Articles