Disable audio recording notification while application is in background on iOS SDK 4.2+

大憨熊 提交于 2020-02-01 09:51:29

问题


In my project, where we use pjsip2 to receive streaming audio from a shared server.

The app is meant to only receive streaming audio, not record. However even though we have disabled the mic in out code we still get a notification of the app recording while it is in the background (top bar flashing red with text: " (recording)").

How can I disable the recording notification while our app is running in the background?


回答1:


Remove the audio option from info plist for UIBackgroundModes

Example:

<key>UIBackgroundModes</key>
    <string>voip</string>


来源:https://stackoverflow.com/questions/12456563/disable-audio-recording-notification-while-application-is-in-background-on-ios-s

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!