my app have a availability states to show if user is online or not, now when user closes the app it would gives value of 0 and 1 if he is online.
now when user closes the app with recent apps button there is no activity lifecycle for it so i can't control the action to send info that user is offline.
so any solution to be able to control what happens when user closes app with recent apps?