Per the blog post, I added:
gap:plugin name='org.crosswalk.engine' source='pgb'
Does this automatically render all my pages in the crosswalk webview in Android, including stuff that was opening via the inappbrowser plugin and windows.open _blank?
Is there some further parameters needed or link modification in the page code itself that needs to be done?
Not obvious from the docs to me.
gap:plugin name='org.crosswalk.engine' source='pgb'
Does this automatically render all my pages in the crosswalk webview in Android, including stuff that was opening via the inappbrowser plugin and windows.open _blank?
Is there some further parameters needed or link modification in the page code itself that needs to be done?
Not obvious from the docs to me.
- 41 Posts
- 4 Reply Likes
Posted 5 years ago
ryan, Developer
- 1538 Posts
- 132 Reply Likes
Yes it automatically renders using the Crosswalk Webview instead of the native android webview. The blog post outlines how you can verify this in the JS user agent string. Regarding the InAppBrowser, I would think this would still render using the Crosswalk engine, but that's a question for the plugin developers (or again you could easily test this the same way with the user agent string).
The only PGB specific configuration is adding the plugin. Further details should be directed to the developers of the plugin -- the repo is here, though there's no issue tracker so you may have to do some searching to find an appropriate communication avenue!
The only PGB specific configuration is adding the plugin. Further details should be directed to the developers of the plugin -- the repo is here, though there's no issue tracker so you may have to do some searching to find an appropriate communication avenue!
- 41 Posts
- 4 Reply Likes
- 3 Posts
- 0 Reply Likes
Hello,
My app was building fine until I made the following changes:
* bumped the version number and version code
* changed phoneGap version to cli-5.1.1 from 3.7.0
* Added the following line:
gap:plugin name='org.crosswalk.engine' version='1.3.0' source='pgb'
Now I'm getting the generic build error message "Oh geez. Your build failed....etc."
What am I doing wrong?
My app was building fine until I made the following changes:
* bumped the version number and version code
* changed phoneGap version to cli-5.1.1 from 3.7.0
* Added the following line:
gap:plugin name='org.crosswalk.engine' version='1.3.0' source='pgb'
Now I'm getting the generic build error message "Oh geez. Your build failed....etc."
What am I doing wrong?
ryan, Developer
- 1538 Posts
- 132 Reply Likes
Simon,
Did you check the log file to see where its failing?
Do you have Hydration enabled (currently Android cli-5.1.1 fails with Hydration on)?
Did you check the log file to see where its failing?
Do you have Hydration enabled (currently Android cli-5.1.1 fails with Hydration on)?
- 3 Posts
- 0 Reply Likes
Hey Ryan,
No Hydration is not enabled. The log files don't really reveal anything that I can see myself. It ends with :
BUILD SUCCESSFUL
Total time: 33 seconds
You can view the log file here:
http://pastebin.com/baYn02WS
No Hydration is not enabled. The log files don't really reveal anything that I can see myself. It ends with :
BUILD SUCCESSFUL
Total time: 33 seconds
You can view the log file here:
http://pastebin.com/baYn02WS
Alan Neveu, Champion
- 213 Posts
- 11 Reply Likes
I have crosswalk working with PhoneGap Build (verified by the userAgent string). So far so good!
The reason I need to use crosswalk is that the Android System WebView has recently been updated (around June 3rd or June 8th, I believe) and is absolutely crashing our PhoneGap / JQuery Mobile app. We have had to tell users to "uninstall updates" to the Android System WebView, and this makes our app function properly again. But then a few days later their phone will automatically install the updates again, and the problems come back. So we want to try crosswalk so that we can control which webview is used for our app.
We have it working now, yep. But now we find that the crosswalk webview is freezing all over the place. We can use our app for about 10 seconds and then it freezes, often times when tapping into a text input or tapping on a link.
Does anyone have any ideas?
The reason I need to use crosswalk is that the Android System WebView has recently been updated (around June 3rd or June 8th, I believe) and is absolutely crashing our PhoneGap / JQuery Mobile app. We have had to tell users to "uninstall updates" to the Android System WebView, and this makes our app function properly again. But then a few days later their phone will automatically install the updates again, and the problems come back. So we want to try crosswalk so that we can control which webview is used for our app.
We have it working now, yep. But now we find that the crosswalk webview is freezing all over the place. We can use our app for about 10 seconds and then it freezes, often times when tapping into a text input or tapping on a link.
Does anyone have any ideas?
- 10 Posts
- 0 Reply Likes
Any updates on the matter? Did you solve this somehow?
- 3 Posts
- 0 Reply Likes
This probably wont help, just to update you that my build started working by itself, don't know what the PhoneGap guys did, but nice one!
- 5 Posts
- 0 Reply Likes
Builds doesn't work for me either (after changed phoneGap version to cli-5.1.1 from 3.7.0, and add the crosswalk plugin)
App id: 1518238
Log:
BUILD FAILED
/home/ec2-user/android-sdk/tools/ant/build.xml:716: The following error occurred while executing this line:
/home/ec2-user/android-sdk/tools/ant/build.xml:730: Compile failed; see the compiler error output for details.
Total time: 8 seconds
/project/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: ant with args: release,-f,/project/build.xml
App id: 1518238
Log:
BUILD FAILED
/home/ec2-user/android-sdk/tools/ant/build.xml:716: The following error occurred while executing this line:
/home/ec2-user/android-sdk/tools/ant/build.xml:730: Compile failed; see the compiler error output for details.
Total time: 8 seconds
/project/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: ant with args: release,-f,/project/build.xml
ryan, Developer
- 1538 Posts
- 132 Reply Likes
@Juan, firstly you need to switch your core plugins to source from npm, as discussed here.
Second the plugin
Second the plugin
de.appplant.cordova.plugin.local-notification seems to be failing to compile on Android. The developer of that plugin needs to upgrade it to be compatible with cli-5.1.1 (specifically cordova android 4.0.2).- 5 Posts
- 0 Reply Likes
- 1 Post
- 0 Reply Likes
I'm trying to use crosswalk. It's compiling now with cli-5.1.1, worked and is verified with user agent on 4.4.4 and 5.0.1, but it's crashing on startup on 4.1.1 android version. Anyone had this problem?
- 26 Posts
- 1 Reply Like
@Bruno yes I experience the same problem and I'm absolutely positive it is CrossWalk plugin related...
For now the only solution I've found is to exit CrossWalk ! Sadly
For now the only solution I've found is to exit CrossWalk ! Sadly
- 10 Posts
- 0 Reply Likes
I have this issue too, crashes all over with crosswalk, no other options at all, its a bummer!!
- 26 Posts
- 1 Reply Like
Hi there,
I saw in this topic (https://crosswalk-project.org/documen...) from the crosswalk project FAQ/Documentation that it is possible to include both ARM and x86 compatible engines in a single build or to upload to Google Play two different packages.
So it looks like we just need some crosswalk preferences to configure in config.xml file to be all happy in here.
Can someone from the service help here ? maybe @Ryan please ?
I saw in this topic (https://crosswalk-project.org/documen...) from the crosswalk project FAQ/Documentation that it is possible to include both ARM and x86 compatible engines in a single build or to upload to Google Play two different packages.
So it looks like we just need some crosswalk preferences to configure in config.xml file to be all happy in here.
Can someone from the service help here ? maybe @Ryan please ?
- 5 Posts
- 0 Reply Likes
Hi,
I have the same question, which types of builds generate Phonegap Build when including Crosswalk? ARM, x86 a single build with both? Or separate downloads?
Is that configurable via preferences.
Regards, Juan
I have the same question, which types of builds generate Phonegap Build when including Crosswalk? ARM, x86 a single build with both? Or separate downloads?
Is that configurable via preferences.
Regards, Juan
- 26 Posts
- 1 Reply Like
Hi there,
I've submitted an issue link here:
https://github.com/phonegap/build/iss...
please vote !
Thanks guys.
I've submitted an issue link here:
https://github.com/phonegap/build/iss...
please vote !
Thanks guys.
- 31 Posts
- 0 Reply Likes
Hey guys I have a question:
How to build crosswalk for ARM and x86 (separately)
I have a plugin include for android platform
It seem to work well on x86 device, but crushes on ARM device. I know that there should be different builds for both archs, so my questings are
1) How to get separate build for ARM (it seem that x86 is by default)?
2) How to get combined build (that contain both versions)?
Do I need to use some preference or what?
How to build crosswalk for ARM and x86 (separately)
I have a plugin include for android platform
It seem to work well on x86 device, but crushes on ARM device. I know that there should be different builds for both archs, so my questings are
1) How to get separate build for ARM (it seem that x86 is by default)?
2) How to get combined build (that contain both versions)?
Do I need to use some preference or what?
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers








