I have a Video Chat application that I want to disconnect from a call when the device is locked, but stay connected when receiving SMS, calendar, low battery, or any other type of notification. The problem is that I cannot understand how much I can determine the reason why my application will delegate the applicationWillResignActive selector.
I was thinking of implementing some kind of timeout, where if applicationDidBecomeActive had not been called for a certain number of seconds, I would have disabled it, but this falsely assumes that the user will ignore or accept the notification received within this number of seconds.
Can someone help me figure out a way to determine what caused the applicationWillResignActive caused by the selector?
Thanks a lot, Mason
source share