I have a problem in understanding the following methods…I have two works to done.
identify when user play home button and second is to identify when application was interrupted by phone call.
- (void)applicationWillResignActive:(UIApplication *)application ;
- (void)applicationDidEnterBackground:(UIApplication *)application;
You need to implement AVAudioSessionDelegate
There are methods for
beginInterruptionandendInterruptionBy the time the
beginInterruptionarrives, your audio has already stopped. Your application may be suspended or terminated following an interruption—for example, if a user chooses to take an incoming phone call