@DutchKev wrote:
With Android, when the app is opened and closed by pressing the backbutton the 'pause' event is fired.. Thats correct, as the app keeps running in the background.
But many users re-open the app again by clicking on the app icon.. In this case the app starts a new instance, and the 'paused' app keeps running in the background, cause I can see the Cordova plugin throwing double logcats..
Also I tried to save a JS variable, that remembers its state, but the variable always return false (meaning its the first launch). So its a complete new Ionic app instance.
The 'resume' event is also not fired (only the deviceReady).. So I end up with 2 app instances..
It does work correct when I re-open the app from the 'active apps overview'.. Then the resume event is fired and there is only 1 app instance.
Is there something I am missing?
Posts: 3
Participants: 2