PhoneGap keep running on Android after onPause

前端 未结 2 1064
情书的邮戳
情书的邮戳 2020-12-06 00:37

I decided to test if phonegap WebView is live when app is in a background.

function test2(x){
    $(\'
\', {text: x.cmd}).appendTo($(\'
2条回答
  •  遥遥无期
    2020-12-06 01:24

    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.

提交回复
热议问题