简体   繁体   中英

Ionic Cordova Detect app kill event when app is killed by swiping it from the recent app list

Is there way to detect when app was killed by swiping it from the recent app list?

I'm writing an application which uses SIP.js (VoIP).

My problem is - If during active call I want to kill app by swiping it from the recent apps, the call on second device still in progress (which is in the call). My idea is to detect when app was killed and reject the call, but I can't detect this event as for Android as for IOS.

I dont think you can detect when App was killed but you should listen to pause and resume events .

So as soon you get pause event you drop call, if you get resume you can redial again

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM