Hey guys
I've been searching the forum but I can't seem to find anyone that's asked this question before. In my app, I want to be able to handle cases when the game gets interrupted by a phone call.
I know I can uncheck the "End application when not in foreground" option but on top of that I'd like the game to pause itself when it's not in the foreground. I've already implemented a pausing system but I don't know what is the condition that checks when the application is not in the foreground.
Can you please help?