Hello,
There is any callback function or event after user return to application?
Case study:
- User turn on my app
- Do something
- User tab home button (going to phone application list / phone dashboard / another app etc.)
4. User return to my app
Thank you.
Cordova’s resume event should satisfy your needs.
Quick example:
document.addEventListener("resume", onResume, false);
function onResume() {
// Handle the resume event
}
You could put the code for example in the .run()
function (in app.js
if you use that).
2 Likes
Hi.
Which command should be required to make the app to reload within "resume "?
$state.go(“app”) ;
it does not work.
with
$location.path( “/app”) ;
appear the back button in the top left . The APP is to be displayed as well in “resume” as with the first start.