This is NOT duplicate question I had searched every where but unfortunate I hadn't found any solution.
My problem I want to play a music file when app is in background, it should start playing when any local notification is called.
I have a function where I am checking app is exist in background and then I have written statement to play music file but [avaudioplayer play] is always returning NO instead. I have checked error code but it is showing null.
I have also edited info.plist file to set Audio file setting to play in background.