View Full Version : application minimization causing JS engine to halt?

14 Dec 2011, 7:17 AM
Hi all; (using iphone+iOS)
I have a sencha app built with PGB. some JS code uses setInterval to prompt the user with a notification, using phonegap's Notification API, every x minutes.
Everything works well as long as the app is 'active' and visible in the screen. the problem starts when the user 'minimizes' the app using the iphone home button. the notifications stops as if the iOS pauses everything in the application. I need the notifications to continue even if the app is minimized as long as it was not terminated via the multitasking view explicitly.
how can I achieve this?
is there a way to bypass this? or created the bahavior I need with sencha+phonegap?