How to get an event while killing my app in Cordova Plugin

Hi techies,

 I need to get an event while killing the app in the Cordova plugin for the purpose of have to forcibly log out my existing session. Let me know if any solutions are available?

Hi Gurubaran,

Checking this topic: There is no way to detect the App Kill Event on any Platform [ Android / iOS ]. When a user or the system force stop your application, the entire process is simply killed. There is no callback made to inform you that this has happened.

When your application is killed in the background it is just killed. It is not woken up, and no methods are called on it. It is unceremoniously terminated and removed from memory. You cannot respond to this event. The same happens when the user force-quits your app from the app-switcher.

Hope it helps,


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.