PhoneGap keep running on Android after onPause

前端 未结 2 1076
情书的邮戳
情书的邮戳 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:00

    I am late with response. In phonegap there is KeepRunning param in config.xml

    You must add following line to config.xml

    
        ...
        
    

    It will call pauseTimers() and pause all WebViews. pauseTimers() is not hidden method and no reflection is needed.

提交回复
热议问题