Reputation: 1
I have used AVAudioPlayer. I want to play custom sound when app is in background state. Now, when entering in background state sound stops and when back to foreground it resumes. Why does this happen?
Upvotes: 0
Views: 37
Reputation: 311
Project file -> Capabilities -> Background modes -> Put checkmark on "Audio, Airplay.."
Upvotes: 1