Hi,
I would like to disconnect from my server when the user triggers a force close of the app on their android/ios device using their respective built in app managers. Is there any way for me to know when a user closes my app?
I have tried ionViewWillLeave and ionVewDidLeave but both do not seem to be working:
ionViewWillLeave() {
// disconnect from server
}
ionViewDidLeave() {
// disconnect from server
}
Any suggestions?