开发者

how to handle ios call interruptions in background

开发者 https://www.devze.com 2023-03-25 08:49 出处:网络
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 inter

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

精彩评论

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