I have audio player app built with PhoneGap 3.2 which uses HTML5 audio tag to play songs. When I launch the app, the first song in the queue should start playing automatically, but it doesn't. I inherited the code base and the old build that was made from the same code base autoplays songs perfectly! Here's what I've tried:
The app content is not bundled with the app, but rather downloaded from S3. So both apps (old and most recent) runs the same js code. Logging shows that on the recent build calling audioElement.play() doesn't do anything, whereas the old build does this perfectly. So there must be an issue with the build itself.
I've decompiled both apks and compared file to file. They are identical.
I've tried to update from PhoneGap 3.2 to 3.5 and build. Audio still doesn't play.
Tried to build with phonegap command-line tools, ADT 22 and 23 on Mac and Windows 7. Nothing.
iOS build of the same app autoplays perfectly.
Can you see anything obvious that I'm missing here?