I've been using Platform's pause and resume event like in the code below but I want to handle exit event when a user closes the app instead of taking app in the background.
this.platform.ready().then(() => {
if (this.platform.is('cordova')){
this.platform.pause.subscribe(() => {
this.stopTimer();
});
}
});
Is there a way any help will be appriciated.