title: HTML 5 audio MP3 file not playing back when iPhone locked using PhoneGap 2.1.0 and iOS 6
body: <p>I have a PhoneGap app which I wrote under PhoneGap 1.8.1 and it worked great under iOS 5.1. </p>
  
  <p>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.</p>
  
  <p>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.)</p>
  
  <p>It all works fine in the simulator but does not work when on my iPhone 4s running iOS 6.</p>
  
  <p>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 <code>sound.m</code>file which some have recommended. Even though I did not need to do this under iOS 5.1</p>
  
  <p>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.</p>
  
  <p>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?</p>