I am working on the Android native application. The issue is that the onDestroy method is not calling when the app kills.
I want to call service when the app kills but the onDestroy method sometimes does not call.
Please suggest how we can call the service class when the app kills or any alternative way.