I can handle call 开发者_高级运维interruption using beginInterruption and endInterruption in the foreground application but when my application is in the background, how should I handle the call interruption?
As far as I understood background processing within iOS, the call interruption do not apply when your application does background processing. If your app is not registered for any background processing it all it surely does not get any notification/interruption.
Have the interruption handler which looks for the interruption state being kAudioSessionBeginInterruption and kAudioSessionEndInterruption. That should do the trick.
Do any processing (for interrruption handling) inside this handler.
精彩评论