How to use crosswalk ONLY for android


#1

Hello,

  1. What is the right cli command ?
    ionic plugin add cordova-plugin-crosswalk-webview ;
    or
    ionic browser add crosswalk .

  2. What are the right lines to add inside the config.xml.

I've noticed this inside the config.xml
<preference name="xwalkVersion" value="17+" />
    <preference name="xwalkCommandLine" value="--disable-pull-to-refresh-effect" />
    <preference name="xwalkMode" value="embedded" />
    <preference name="xwalkMultipleApk" value="true" />

But is there more to write and does it still work without the “desable pull to refresh”?

  1. Where goes the manifest.json?

Thx


Ionic browser list -> browser is not a valid task? - SOLVED
#2
  1. use the plugin add command. The older browser add command was create before cordova had official support for crosswalk. Since then, cordova has added the parts needed to make this work, so we have depreciated the browser command.

  2. Those lines get added by default and shouldn’t be altered.

  3. What manifest.json?


#3

like mhartington said:
you simple add the crosswalk plugin. After that you need to build the multiple apk-files.

There is a little example for android.

instead of cordova xxx commands you can use ionic xxx


#4

Ok and Thank you both.
But

  1. doing “ionic plugin add cordova-plugin-crosswalk-webview” :
    I install crosswalk not only for android but:
    “Installing “cordova-plugin-crosswalk-webview” for ios
    Installing “cordova-plugin-crosswalk-webview” for windows”

Does it mean that an iOS and WinPh apps will also use Crosswalk as webview?
If yes how to prevent this?

  1. Crosswalk allows custom Launch Screen through its manifest.json
    ( https://crosswalk-project.org/documentation/manifest/launch_screen.html ).
    How to do the same inside the config.xml?

Thx


#5

No it does not auto install plugins for ios and windows. You confirm this by looking at the plugins


#6

I am getting error when i am adding plugin cordova plugin add cordova-plugin-crosswalk-webview --save

and i am getting this error :-

cordova plugin add cordova-plugin-crosswalk-webview --save
:heavy_multiplication_x: Running command - failed!

[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.

[ERROR] An error occurred while running cordova plugin add cordova-plugin-crosswalk-webview --save (exit code 1):

    Error: Cannot find module 'internal/fs'

and my cli is also show :- npm update check failed
Try running with sudo or get access │
│ to the local update config store via │
│ sudo chown -R $USER:$(id -gn $USER) /Users/sanjeevkumarraja/.config