Android Question Service doesn't start at boot if app has been killed

FrankBerra

Active Member
Licensed User
Longtime User
Hi all

I am facing this problem on android 5.1.1:
I developed an app with some services starting at boot and running in background.
Everything work perfectly until i decide to kill the app with task manager: in this case the main activity and all services are killed immediately.

The problem occours when i restart the phone: the services won't start until i open the app manually.
Is there a workaround that i am missing that permits to start the service automatically at boot even if i have killed the app?

Thanks in advance
 

DonManfred

Expert
Licensed User
Longtime User
Is there a workaround that i am missing that permits to start the service automatically at boot even if i have killed the app?
No. if you (the user) decides to kill a app then android will not start the service until you started the app manually again.

This has discussed a few times here in forum.
 
Upvote 0
Top