How to detect when my app close forcefully. I have try some way like service but it's not work proper. Service is close automatically even app in background. Is there any other way to detect app close without using service.
I have try below solution but not working proper. How to handle code when app is killed by swiping in android?
Basically i want to logout only if my app kill forcefully by user.