Restart my Phonegap app programmatically

前端 未结 3 2001
醉酒成梦
醉酒成梦 2020-12-14 14:56

How can I programmatically restart my phonegap app? I exit the app easily through navigator.app.exitApp(), but I would like it to restart immediately.

The reason I

3条回答
  •  天命终不由人
    2020-12-14 15:56

    Try this

    navigator.app.loadUrl("file:///android_asset/www/index.html", {wait:2000, loadingDialog:"Wait,Loading App", loadUrlTimeoutValue: 60000});
    

    Bakri

提交回复
热议问题