Pravin
Pravin

Reputation: 1

Why custom sound pauses in background state with iOS and Objective C?

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

Answers (1)

Nazar Lisovyi
Nazar Lisovyi

Reputation: 311

Project file -> Capabilities -> Background modes -> Put checkmark on "Audio, Airplay.." Put checkmark on first one

Upvotes: 1

Related Questions