I am building an Android VOIP application that has a service which handles the registration for the client (PJSIP in my case).
For now i am starting a normal service and using the return START_STICKY in order to keep my service up and running all the time since the user needs to be registered 24/7. But that is not the case as i find my self not registered after a while.
What is the best solutions for issues like these?
Make service start in foreground?
I would like to hear your thoughts!