Is there a way to track (event?) via javascript when an Android Phonegap app is transitioned to active/running having been in the stopped state?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are pause and resume events that are fired when you put your app in the background and when it comes back out. Of course, if your app died in the background, you’ll be firing resume as well as deviceready when you come back into Cordova.
The docs talk about all the Cordova events here:
http://docs.phonegap.com/en/2.2.0/cordova_events_events.md.html