Is there a function that is called when the app moves from Background to Foreground?
I know Objective-C has a similar function; does Ionic Framework have a means to accomplish this?
Is there a function that is called when the app moves from Background to Foreground?
I know Objective-C has a similar function; does Ionic Framework have a means to accomplish this?
Check here.
http://cordova.apache.org/docs/en/4.0.0/cordova_events_events.md.html#resume
I believe the “resume” event is what you are looking for. Also if you want to wrap it in angularjs, you can use $ionicPlatform.$on(‘resume’,fn);
According to my experience, this “resume” is fired also when you build a browser version using “ionic build browser” (when you change between tabs).
Hope this help.
Thanks for the fast response! Worked great, cheers.