Background Modes and Events
Play Audio in Background
Add a key named Required background modes in property list (.plist) file ..
as following picture..
And add following code in
in application didFinishLaunchingWithOptions
If you want changes as per events you have to add following code in AppDelegate.m
Based on notification have to work on it..
This modified text is an extract of the original Stack Overflow Documentation created by following contributors
and released under CC BY-SA 3.0