This is a migrated thread and some comments may be shown as answers.

Crosswalk - Invalid Plugin through CLI

2 Answers 58 Views
Apache Cordova
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Adam
Top achievements
Rank 1
Adam asked on 11 Sep 2015, 07:54 PM

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 https://github.com/Telerik-Verified-Plugins/Crosswalk

 

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?

 

Thanks.

2 Answers, 1 is accepted

Sort by
0
Adam
Top achievements
Rank 1
answered on 11 Sep 2015, 07:55 PM
Sorry about the title of the thread.  That was the problem initially, but I got past that.
0
Kaloyan
Telerik team
answered on 16 Sep 2015, 02:31 PM
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.

Regards,
Kaloyan
Telerik
 

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

 
Tags
Apache Cordova
Asked by
Adam
Top achievements
Rank 1
Answers by
Adam
Top achievements
Rank 1
Kaloyan
Telerik team
Share this question
or