Phonegap + Crosswalk - Disabled to refresh the effect
I connected to a project on my phone - Crosswalk WebView Engine plugin. This will cause the reload / refresh application to appear when we pull the screen down. How do I turn off this effect?
In my config.xml file tried to add the line:
<preference name="CROSSWALK_ANDROID_COMMANDLINE" value="--disable-pull-to-refresh-effect" />
or
<preference name="xwalkCommandLine" value="--disable-pull-to-refresh-effect" />
or
<preference name="xwalk-command-line" value="--disable-pull-to-refresh-effect" />
None of the parameters gave any result. I am compiling the application through the service - "Adobe Phonegap Build", if it has any value.
source to share
I had the same problem, so I forked the cordova web browser plugin: https://www.npmjs.com/package/cordova-plugin-crosswalk-webview-pgb-adapt . My plugin is based on xwalk_core_lib 16.45.417.
If you want to use it, add this line to your config.xml file:
<gap:plugin name="cordova-plugin-crosswalk-webview-pgb-adapt" source="npm" version="1.4.0-dev-5"/>
source to share
You can install the cordova crosswalk plugin with the "-variable" option, for example the cordova plugin add cordova-plugin-crosswalk-webview -variable CROSSWALK_ANDROID_COMMANDLINE = "- disable-pull-to-refresh-effect --disable-overscroll-edge-effect "after the merge commit https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview/pull/41 .
source to share
CrossWalk supports all Chromium command lines . So you should just use -disable-pull-to-refresh-effect
. (More to see http://peter.sh/experiments/chromium-command-line-switches/ )
There are two ways to use the command line in your own project.
- use command options like
-disable-pull-to-refresh-effect
in make_apk.py script - add the file named
xwalk-command-line
to your slave by writing command lines in the format:xwalk --disable-pull-to-refresh-effect
Hope it helps you :)
source to share