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.

+3


source to share


4 answers


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"/>

      

+2


source


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 .



0


source


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

See also: https://github.com/crosswalk-project/crosswalk-website/wiki/Use-Chromium-command-lines-in-your-apps-on-Android

Hope it helps you :)

0


source


You might want to unlock the Crosswalk plugin with these changes and upload it to PhoneGap Build (if you are a subscriber) or NPM if you need these changes.

from Phonegap build Official

0


source







All Articles