In my app, there is a service checking for incoming audio calls (through internet). I am facing that the service has been killed by the OS after sometime being idle, but the notification icon appears like the service is running and in phone settings its displaying that the service is currently running. I found some apps on google play where service is not killed even on low memory.
I added START_STICKY to restart it when it is stopped. I also made it to run as foreground.
I want my service not to be killed. May I know the procedure for it. (If the service is killed, it should reflect in the notification and in phone settings).