Return to app callback?

There is any callback function or event after user return to application?

Case study:

  1. User turn on my app
  2. Do something
  3. 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).


Thank you very much!!! :smile:


Which command should be required to make the app to reload within "resume "?

$state.go(“app”) ;
it does not work.

$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.