Posts

Post not yet marked as solved
5 Replies
2.9k Views
I'm using AVAudioSession in my VOIP app (using also CallKit).I understand that the session can get interrupted by a number of things, for example by a second incoming call.Apple states towards the bottom of this pagehttps://developer.apple.com/library/content/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/HandlingAudioInterruptions/HandlingAudioInterruptions.html#//apple_ref/doc/uid/TP40007875-CH4-SW5"Note: There is no guarantee that a begin interruption will have a corresponding end interruption. Your app needs to be aware of a switch to a foreground running state or the user pressing a Play button. In either case, determine whether your app should reactivate its audio session."On the mentioned page there is an example, when the user ignores the incoming call and in that case AVAudioSessionInterruptionTypeEnded is being sent.But what should I do in every other case, when I don't get an AVAudioSessionInterruptionTypeEnded? (E.g. When the user answers the 2nd call and puts me on hold and later he ends the 2nd call?)Thanks!
Posted
by toziact.
Last updated
.