开发者

how to handle ios call interruptions in background

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜