What is the most frequently triggered android intent action that my app could have a BroadcastReceiver
listening for without a service running in order to receive it?
Background
I have a foreground service that needs to run roughly whenever the user is present at the phone. When the screen gets turned off I shut down the service so Doze mode can be achieved (and yes, foreground running services block Doze mode even though documentation doesn't clearly state so).
The problem comes when trying to turn the service back on.
I've already looked into SCREEN_ON
and USER_PRESENT
but both appear to require a running background service in order to be received which negates what i am trying to achieve.
So my thought is, I wonder if there's a action triggered frequently enough when the user is present that I could listen for that instead of SCREEN_ON
/USER_PRESENT
?