-->

Disable audio recording notification while applica

2020-08-01 16:40发布

问题:

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>