Background Audio
suggest changeBy default, audio stops when the user leaves the app. To keep playing, turn on Audio in the Background Modes capability.
That checkbox is not enough on its own. Set the shared AVAudioSession category to one that allows playback, such as AVAudioSessionCategoryPlayback, and activate the session before starting the player.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents