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.jsgithub 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
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.