How to detect the exact moment when the app is killed?

95 Views Asked by At

I need to make an api call when the app is being killed but lifecycle callbacks are not called when the user just swipes up the app from recent tasks.

I tried to check onPause, onStop, onDestroyed callbacks but none of them called when I killed the app by swiping it.

Do we have a way to detect the exact moment when the app is killed?

0

There are 0 best solutions below