When I suspend my app on android the “applicationSuspend” gets called as the app closes or goes to the background. I noticed on iOS my “applicationSuspend” gets called not when I click the home button but when I return to the app itself. Is this the default behavior? The way I have my code setup I stop all my listeners in the applicationSuspend so they don’t keep running but since that gets called when the app is re-opened it stops all my listeners and the user can’t do anything.
Sorry about the poor quality video but this should show what I’m talking about
https://www.youtube.com/watch?v=7Y0qFHSaJu0
When I start the app the “applicationStart” gets called
When I press the power button and go back into the app the “applicationSuspend” gets called
When I press the home button and go back into the app the “applicationSuspend” gets called
After some debugging I found the issue falls in my code somewhere. I deleted everything except the system call and it works fine. So now I have some crazy debugging to do =/
Sorry about the poor quality video but this should show what I’m talking about
https://www.youtube.com/watch?v=7Y0qFHSaJu0
When I start the app the “applicationStart” gets called
When I press the power button and go back into the app the “applicationSuspend” gets called
When I press the home button and go back into the app the “applicationSuspend” gets called
After some debugging I found the issue falls in my code somewhere. I deleted everything except the system call and it works fine. So now I have some crazy debugging to do =/