As a user, I want to have the app polling for changes regardless of app standby, app deep sleep or something else, the app should simply run forever.
We currently use a foreground service and disable battery optimisations for this app but even both don't protect us completely against Doze, I think we should implement a WorkManager and set something similar to setAndAllowWhileIdle which internally uses an AlarmManager with setAndAllowWhileIdle() or setExactAndAllowWhileIdle() to protect against Doze.
Please agree to the following
Summary
Replace foreground service with
WorkManager
Motivation
As a user, I want to have the app polling for changes regardless of app standby, app deep sleep or something else, the app should simply run forever.
We currently use a foreground service and disable battery optimisations for this app but even both don't protect us completely against Doze, I think we should implement a WorkManager and set something similar to
setAndAllowWhileIdle
which internally uses an AlarmManager withsetAndAllowWhileIdle()
orsetExactAndAllowWhileIdle()
to protect against Doze.Considered Alternatives
No response
Anything else?
No response