I have an iOS app that needs to use background audio, but I would like the user to have control of the audio in the background. Can the info.plist capabilities be changed programmatically? to add audio background modes only when a user chooses it in the application settings?
Best,
F
Since you can’t programmatically change the contents of info.plist, the way I’d go about this would be:
AVAudioSessionCategoryPlayback
. Otherwise play it using the default AVAudioSessionCategorySoloAmbient
.Note: The app needs to have an active Audio Session before it goes to background.
For further info, also have a look at technical Q&A 1668.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments