How to keep an Android Service always running?

414 views Asked by At

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!

0

There are 0 answers