What is the best way to resume playing your iPod or other audio after your application is terminated with its session?
NOTE. I already tried calling ...
[_session setActive:NO withFlags:AVAudioSessionSetActiveFlags_NotifyOthersOnDeactivation error:outError]
I am creating an iOS application for VoIP that uses AVAudioSessionCategoryPlayAndRecord as its category and kAudioSessionMode_VoiceChat as its mode. To simplify the handling of audio session management, I have a singleton that listens for notifications about application status and other important events. However, the code above does not seem to cause music to resume in the iPod app.
Finally, we also noticed that the musical controls that appear at the bottom of the screen when you double-click the home button act as if our application is one of the audio being played. However, we have already established that it is inactive.
I would like to know more about what is happening here if anyone has any kind of clue.
source share