Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (lockscreen)
Viewing all articles
Browse latest Browse all 3

Resumed event lockscreen

$
0
0

Hi, in my iPad app i need to do something when the user comes back from the lockscreen, i used the resumed event and it works but with a problem, the resumed event is called also when the user comes back from the multitasking bar or from the springboard, but i don't need to do nothing in this situation.I tried the following code: Ti.App.addEventListener('resumed', function(e) {

if(Ti.App.getIdleTimerDisabled()) {
    alert('Call from Lock');
} else {
    alert('multitask');
}

});

but Ti.App.getIdleTimerDisabled() is always 0 and i can't see alert('Call from Lock'); How can i do?


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>