I decided to test if phonegap WebView is live when app is in a background.
function test2(x){
$(\'\', {text: x.cmd}).appendTo($(\'
I am late with response. In phonegap there is KeepRunning
param in config.xml
You must add following line to config.xml
<platform name="android">
...
<preference name="KeepRunning" value="false" />
It will call pauseTimers()
and pause all WebViews. pauseTimers()
is not hidden method and no reflection is needed.
This should help: WebView threads never stop (WebViewCoreThread, CookieSyncManager, http[0-3])
Basically you have to use reflection to access the WebView's onPause/onResume methods to really make it pause and resume.