I have a PhoneGap app which I wrote under PhoneGap 1.8.1 and it worked great under iOS 5.1.
I needed to change the app so downloaded the latest Xcode 4.5 and the iOS 6 SDK. But when I build the app and deploy it to my iPhone 4s, the HTML 5 audio will not play back when the phone is locked.
I tried upgrading the app to use PhoneGap 2.1.0 but when the phone is locked the app will still not play the audio. (Which is an mp3 file stream from my server.)
It all works fine in the simulator but does not work when on my iPhone 4s running iOS 6.
I have Required background modes set to App plays audio and Application does not run in background = Yes. Which used to work under iOS 5.1 but does not under iOS 6. I have also tried to modify the sound.m
file which some have recommended. Even though I did not need to do this under iOS 5.1
I have tried a bunch of examples I found on the internet but none seem to work in iOS 6. And allow HTML 5 audio to stream in with the phone locked.
What do I need to do to get HTML 5 audio to play when an iPhone is locked in iOS 6 under PhoneGap 1.8.1 or 2.1?