jQueryMobile prevent device switch off - Web Audio API

jQueryMobile prevent device switch off - Web Audio API

Hey everyone,

i am currently developing an application with jquerymobile for iOS (& maybe someday Android).

It is a simple app: By touching a button in a simple popup it starts to play different sounds in a loop with the html5 web audio api (e.g. touch -> sound1 -> sound2 -> sound3 -> sound1 -> sound2 ...and so on...).

The problem now is when you turn off the device (iPhone) or close the app with the "home" button the sounds stops to play (or the javascript stops?). When you turn the device back on or reopen the app, the sounds starts to play again (or the jsc starts again?).

Is there any solution to this or is it possible to prevent the device from switching off?

THANK YOU! and sorry for the bad english ;)

best regards
Patrick