Crosswalk - Invalid Plugin through CLI

Thread is closed for posting
3 posts, 0 answers
  1. Adam
    Adam avatar
    2 posts
    Member since:
    Sep 2015

    Posted 11 Sep 2015 Link to this post

    I'm trying to add Crosswalk to my application through the CLI on OS X.  


    I can successfully do "appbuilder plugin fetch 

     appbuilder plugin fetch


    Then I do:

     appbuilder plugin add "Crosswalk WebView Engine"


    And it successfully installs.  If I do "appbuilder plugin" or "appbuilder --debug" I can see it there.


    However, when I launch it in my emulator, and inspect the navigator.userAgent, it doesn't mention crosswalk.  Just this:


    "Mozilla/5.0 (Linux; Android 6.0; Android SDK built for x86 Build/MRA44C; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/44.0.2403.119 Mobile Safari/537.36"


    And if I logcat, I see no reference to it there either.

     Do I need to do something else to enable it?  Do I need to call it explicitly in my code somewhere?



  2. Adam
    Adam avatar
    2 posts
    Member since:
    Sep 2015

    Posted 11 Sep 2015 Link to this post

    Sorry about the title of the thread.  That was the problem initially, but I got past that.
  3. Kaloyan
    Kaloyan avatar
    878 posts

    Posted 16 Sep 2015 Link to this post

    Hello Adam,

    Thank you for contacting us. There are several requirements that must be met in order to use Crosswalk in your AppBuilder project. Here they are:
    • Your project targets Apache Cordova 4.0.0 or later.
    • You have enabled Hardware Acceleration for your project.
    • Your Android devices run on Android 4.0 or later.

    Further, I would recommend you checking this article about configuring the web views for your project. Please, make sure that you select the CLI option from the upper right Section drop-down. As said there, you can use "$ appbuilder webview list" to check what web views you can choose from and then set the preferred one, by typing "appbuilder webview set android <Name>". Note that for Crosswalk, this command will include the above mentioned plugin automatically which means that there is no need for you to fetch it or add it to the project.

    The above said, I would suggest you to remove the added plugin, change the Cordova version of your project to 4.0 and follow the steps from our documentation. Then, running the app on Android 4.0 or later, the user agent should point to Crosswalk.

    I hope this helps.


    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

Back to Top