Whats the best way to listen for when my Ionic 3 application is closed?
I can set window.onbeforeunload and its fired when the app is terminated in the browser and on android devices but doesn’t get executed on iOS. I’ve also tried window.onpagehide. Still no dice. Any other ideas?
Some kind of app terminated event seems like it would be available through the ionic platform api right along with deviceready and pause/resume events.