Web audio API with iOS and Phonegap crashes when resuming from background

It may be a shot in the dark, but here it is:

I have an HTML5 game that works fine on iPhone using Phonegap.

I added audio using the Web Audio API (which is supported by ios 6). This also works well, unless I exit the application and then open the application again (from "Backgrounded").

After resuming, the application pauses and then works.

Additional Information

  • I first noticed this after using the howler.js framework for audio. I removed this and tried the simplest example of using the web audio API, and the problem still persists.

  • I am testing this with Phonegap 2.5.0 on iOS 6.1.2 and iPhone5.

  • It is impossible to debug through xcode for any reason when connecting to xcode, the application will still stop after resuming, but will not work. (so only crash when starting from the icon on the main screen)

  • I think I tied him to a challenge ctx.createBufferSource().


If someone else has experienced the same or even has a solution, I would love to hear!

Thanks
to.

+1
source share
2 answers

Updated to the new version of xcode, and the problem disappeared.

I'm pretty sure this is not a phone gap problem, but a bug in xcode / ios.

0
source

? , , API- Audio API , . API- , , .

, . , .plist , " " " ". .

, .

0

All Articles