Hybrid View
-
10 Jan 2013 11:15 PM #1
Answered: Background job (applicationDidEnterBackground)
Answered: Background job (applicationDidEnterBackground)
Hi,
Is there an iOS applicationDidEnterBackground() alternative for Sencha?
I need my app to do some job and polling while it's in background
Thank you
Jo
-
Best Answer Posted by george.m
You can use phonegap for that.
http://docs.phonegap.com/en/2.2.0/co....md.html#pause
-
11 Jan 2013 1:14 AM #2
-
11 Jan 2013 1:22 AM #3
Hi, not in Sencha but in Phonegap you can use the pause and resume events:
http://docs.phonegap.com/en/2.3.0/co....md.html#pause
-
11 Jan 2013 2:18 AM #4
-
11 Jan 2013 2:56 AM #5
Somebody has an example sending an alert while app is paused?
I loaded cordova-2.2.0.js, added onPause() method in my index.html, tried to lauch some alert() or Ext.device.Notification.... no success...
-
11 Jan 2013 3:09 AM #6
Put this in your app.js launch function:
Code:var onPause = function(){ alert(); } document.addEventListener("pause", onPause, false);
-
11 Jan 2013 3:38 AM #7


Reply With Quote