I need a service to be running in the background for my app and I want it start up automatically when the phone is switched on. I've got the usual intent-filter for BOOT_COMPLETED but what happens is this...
- I switch the phone on.
- It starts up until the lock screen.
- I go through the lock screen.
- The background job gets started up.
I want/need the job to start before I'm asked for the lock screen.
This is on a Pixel running Android N.
Cheers.