How to know if app is reponed


#1

Hi all, how can I know if my app has been reopened ?

Thanks.


#2

@ziobudda, you can register to the $ionicPlatform events, http://ionicframework.com/docs/api/service/$ionicPlatform/, based on the events that cordova exposes - https://cordova.apache.org/docs/en/edge/cordova_events_events.md.html#Events.
Then you can use the “pause” and “resume” events i guess to determine when the app is reopened by saving some data behind.