ionic-team / cordova-plugin-ionic-webview

Web View plugin for Cordova, specialized for Ionic apps.
Apache License 2.0
486 stars 394 forks source link

App stuck after being in the iOS background a while #653

Closed WilsonFpz closed 3 years ago

WilsonFpz commented 3 years ago

I found my app will stuck in the foreground mode from staying in the background for a period of time. (Only in iOS, and it happens occasionally)

TI try to reproduce the issue in a fresh cordova project. index.js github repo

You can see it works fine at first. The apps would show "deviceready" dialog, and then click the Test button, shows "Hello", move the app to the background, wake it to the foreground, and shows "pause", "resume" dialog. good one demo

However, if the app stay in the background mode "for a while" and then reopen the app.
It shows only "pause" dialog, and stuck. (No "resume" dialog and the Cordova image is not show either.) bad one demo

please help. Thanks.

WilsonFpz commented 3 years ago

I found that IOS webview would reload automatically in the background mode.