Ionic App crashes when focus lost

307 views Asked by At

Im not sure if anyone else has experienced this, but the App I am building crashes on Android when it loses focus. Its a basic time recording App using angular-timer. I have handled it so when the app loads it checks to see if a timer was in progress and resumes, but I thought I would see if anyone else out there has seen this happen.

I can recreate the issue by opening the App, then opening Google Play while the app is running in the background. When I return to the Ionic App the splash screen is shown and the App loads from start again.

1

There are 1 answers

0
Josh Beam On BEST ANSWER

It's not "crashing", it's simply just not running in the background. See the many related questions here on StackOverflow: