0

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.

SM3RKY
  • 1,548
  • 1
  • 14
  • 27
  • I don't think I need a service, I just didn't expect the app to close every time it lost focus. I guess it makes sense that all the javascript can only run in the one activity – SM3RKY Aug 24 '15 at 04:58

1 Answers1

1

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

Community
  • 1
  • 1
Josh Beam
  • 19,292
  • 3
  • 45
  • 68