Cordova + Crosswalk iOS still using UIWebView

csga5000 picture csga5000 · Nov 19, 2015 · Viewed 8.3k times · Source

I didn't find a lot of instruction setting up crosswalk for iOS it seems like it should be as simple as:

cordova plugin add cordova-plugin-crosswalk-webview
cordova build ios

Because I've had issues with plugins not taking effect before I do the following:

cordova plugin add cordova-plugin-crosswalk-webview
cordova platform remove ios
cordova platform add ios
cordova build ios

After having done this, when I capture the view hierarchy and inspecting that it's still using "UIWebView" which has a "UIWebBrowserView" inside of it (which is inside of a scroll view and there are a couple image views too).

Also, navigator.userAgent is as follows:

"Mozilla/5.0 (iPad; CPU OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13B143 (5618403776)" = $1

Another test someone mentioned was essentially:

if (window.indexedDB)
    console.log('Using crosswalk');
else
    console.log('Not using crosswalk/wkwebview');

And window.indexedDB is undefined.

So... what do I need to do so that the app uses wkwebview?

Answer

user3255670 picture user3255670 · Nov 19, 2015

A review of the plugin repository does NOT indicate a cordova-plugin-crosswalk-webview that supports iOS. This means crosswalk does not work as a plugin for iOS.

Yes there is support for Crosswalk for iOS, but you must install via the github repository or other means.

FWIW: there is a WkWebview plugin

UPDATE: 2016-03-19. The follow post was made on February 16, 2016:
Plugins From Git Repositories Are Now Available on PhoneGap Build!