Crosswalk not shown in bundled APK


#1

Hi All!
I have been upgrading Crosswalk [cordova-plugin-crosswalk-webview] from 18 [1.7.0] to latest 23 [2.3.0] (6 days old) on Ionic 1.3.
However the build logs do not show the ‘xWalk 18+’ message.
The bundled APK when deployed on a real device and debugged with Chrome dev tools does not use XWalk as the user agent. To push testing further, I set a pref: <preference name="xwalkUserAgent" value="custom XWalk 23 UA" /> and that does not show either.
Any clue?
Thanks in advance.
Olivier

To help you figure out the picture:
> $ ionic info

Your system information:

Cordova CLI: 6.1.1
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic Version: 1.3.0
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
ios-deploy version: 1.9.1 
ios-sim version: 5.0.13 
OS: Mac OS X El Capitan
Node Version: v4.4.0
Xcode version: Xcode 8.2.1 Build version 8C1002 

The build operations:
$ export XWALK_VERSION=23.53.589.4 $ ionic browser add crosswalk@$XWALK_VERSION $ if grep -q "android:xlargeScreens=\"false\"" platforms/android/AndroidManifest.xml; then $ echo XLarge screens disabled $ else $ echo Disabling XLarge screens $ if grep -q "android:xlargeScreens=\"true\"" platforms/android/AndroidManifest.xml; then $ sed -i -- 's/android:xlargeScreens="true"/android:xlargeScreens="false"/g' platforms/android/AndroidManifest.xml $ else $ sed -i -- 's/\(<supports-screens .*\)\(\/>\)/\1 android:xlargeScreens="false" \2/g' platforms/android/AndroidManifest.xml $ fi $ fi $ echo 'ext.cdvBuildMultipleApks=true' > ./platforms/android/build-extras.gradle $ ionic build android --release $ ionic run android --device
Finally the relevant parts of config.xml:
<preference name="webviewbounce" value="false"/> <preference name="UIWebViewBounce" value="false"/> <preference name="DisallowOverscroll" value="true"/> <preference name="BackupWebStorage" value="none"/> <preference name="SplashScreen" value="screen"/> <preference name="SplashScreenDelay" value="10000"/> <preference name="AutoHideSplashScreen" value="false"/> <preference name="ShowSplashScreenSpinner" value="false"/> <preference name="FadeSplashScreen" value="true"/> <preference name="FadeSplashScreenDuration" value="1000"/> <preference name="orientation" value="portrait"/> <preference name="CrosswalkAnimatable" value="true"/> <preference name="target-device" value="handset"/> <preference name="deployment-target" value="8.0"/> <preference name="xwalkVersion" value="23+"/> <preference name="xwalkCommandLine" value="--disable-pull-to-refresh-effect"/> <preference name="xwalkMode" value="embedded"/> <preference name="xwalkMultipleApk" value="true"/> <preference name="xwalkUserAgent" value="custom XWalk 23 UA" /> <feature name="StatusBar"> <param name="ios-package" onload="true" value="CDVStatusBar"/> </feature>


#2

OK, I am such a newbie…
For the record, don’t forget to call ionic state restore (or equivalent) when you upgrade the xWalk plugin.

Thanks anyway.