Hi guys,
can someone tell me how can i add a preference for crosswalk on the config.xml?
For example, i want to add a command-line flag like: --disk-cache-dir from this list: http://peter.sh/experiments/chromium-...
How could it be written inside config.xml?
I've tried to add it like this: preference name="disk-cache-size" value="1000000" but i think is the wrong way.
Thanks in advance.
can someone tell me how can i add a preference for crosswalk on the config.xml?
For example, i want to add a command-line flag like: --disk-cache-dir from this list: http://peter.sh/experiments/chromium-...
How could it be written inside config.xml?
I've tried to add it like this: preference name="disk-cache-size" value="1000000" but i think is the wrong way.
Thanks in advance.
- 11 Posts
- 1 Reply Like
Posted 5 years ago
Chris Griffith, Champion
- 347 Posts
- 92 Reply Likes
See this page on setting the Crosswalk preference:
https://github.com/phonegap-build/cor...
I have not tried it, so you milage may vary,
Chris
https://github.com/phonegap-build/cor...
I have not tried it, so you milage may vary,
Chris
- 11 Posts
- 1 Reply Like
Yes, i have already read that but this way that a preference is applied is only for cordova CLI. I have tested that with Phonegap Build and seems that is not working.
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
@Chris & WGMB
the Crosswalk announcement was buried in the forum announcements.
It is here:
Cordova 5.1.1 Now on PhoneGap Build
The link that is needed is :
Read the (blog) link for details.
Jesse
the Crosswalk announcement was buried in the forum announcements.
It is here:
Cordova 5.1.1 Now on PhoneGap Build
The link that is needed is :
<gap:plugin name='org.crosswalk.engine' version='1.3.0' source='pgb' />
Read the (blog) link for details.
Jesse
- 11 Posts
- 1 Reply Like
@JesseMonroy650 My problem has nothing to do from where i get the crosswalk plugin, i'm getting it from npm, not from pgb (pgb has an older version). The problem is how can i add a crosswalk preference into config.xml on Phonegap Build.
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
@WGMB,
apparently you did not read the blog post. You MUST use the PGB sourced crosswalk plugin until a new one is ready. YOU CANNOT USE THE NPM AS A SOURCE for the crosswalk plugin - for now.
I Quote the blog, last paragraph
Until we get an announcement from support, that is the only crosswalk plugin available.
Best of Luck
Jesse
apparently you did not read the blog post. You MUST use the PGB sourced crosswalk plugin until a new one is ready. YOU CANNOT USE THE NPM AS A SOURCE for the crosswalk plugin - for now.
I Quote the blog, last paragraph
Note that the source in the plugin xml above is ‘pgb’, not ‘npm’. You’ll find that building with the npm version of cordova-plugin-crosswalk-webview will fail on PhoneGap Build.
Until we get an announcement from support, that is the only crosswalk plugin available.
Best of Luck
Jesse
- 11 Posts
- 1 Reply Like
But, you can use the npm Crosswalk plugin. Try it ;)
Anyway, as i said, that's not my problem now. Do you know how to add a preference on crosswalk via Phonegap build?
Anyway, as i said, that's not my problem now. Do you know how to add a preference on crosswalk via Phonegap build?
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
@WGMB,
Okay. Apparently, English is not your first language, and you have a difficult time reading English as well. Hopefully you can understand this.
The version for crosswalk you should be using is
If you are using anything other version, your are on your own.
Best of Luck
Jesse
Okay. Apparently, English is not your first language, and you have a difficult time reading English as well. Hopefully you can understand this.
The version for crosswalk you should be using is
<gap:plugin name='org.crosswalk.engine' version='1.3.0' source='pgb' />
If you are using anything other version, your are on your own.
Best of Luck
Jesse
- 1 Post
- 0 Reply Likes
That was just plain out rude and really unnecessary.
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
@Don, it is not rude and always necessary. Read the thread. Jesse
- 11 Posts
- 1 Reply Like
@JesseMonroy650 Your posts are not very helpful, thanks anyway.
Any other suggestions on my issue? Thanks.
Any other suggestions on my issue? Thanks.
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
@WGMB,
Funny I was think the same thing about your response.
FWIW: crosswalk is but one (1) tool. Perhaps, it would be better to know you goal, rather than concentrate on some tool that may not serve your purpose.
ALSO, on your original message. Any command line options you see posted on blogs are NOT available to Phonegap Build, unless the authors have made allowances via their interface.
Lastly, as we have been talking, Phonegap has made an UNANNOUNCED upgrade in the system. Whatever I said before does not apply.
Jesse
Funny I was think the same thing about your response.
FWIW: crosswalk is but one (1) tool. Perhaps, it would be better to know you goal, rather than concentrate on some tool that may not serve your purpose.
ALSO, on your original message. Any command line options you see posted on blogs are NOT available to Phonegap Build, unless the authors have made allowances via their interface.
Lastly, as we have been talking, Phonegap has made an UNANNOUNCED upgrade in the system. Whatever I said before does not apply.
Jesse
- 11 Posts
- 1 Reply Like
So we can't use any preference from chromium command line flags from PGB?
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
@WGMB,
That is correct. command line flags are not available with PGB - unless a plugin author has mad such an allowance.
I have also looked into using other variations of crosswalk (like those on NPM).
There are three (3) plugins on NPM that claim to work with PGB. I would suggest trying one of those to see if it works for you.
http://cordova.apache.org/plugins/?q=crosswalk%20pgb
Best of Luck
Jesse
That is correct. command line flags are not available with PGB - unless a plugin author has mad such an allowance.
I have also looked into using other variations of crosswalk (like those on NPM).
There are three (3) plugins on NPM that claim to work with PGB. I would suggest trying one of those to see if it works for you.
http://cordova.apache.org/plugins/?q=crosswalk%20pgb
Best of Luck
Jesse
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
Sorry forgot to mention. If you have any issues with these 3rd-party plugins, you will need to speak with the authors.
The policy is 3rd-party plugins are supported by the authors. This forum does not offer support. Other support is available from Google Group of Cordova/Phonegap and Stackoverflow (tag: phonegap-plugins)
The policy is 3rd-party plugins are supported by the authors. This forum does not offer support. Other support is available from Google Group of Cordova/Phonegap and Stackoverflow (tag: phonegap-plugins)
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers



