Pick the fix
A reminder app's periodic WorkManager check fires hours late overnight. What fits?
Hint 1 of 1
Is this deferrable work or a time-critical alert?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Schedule the reminder with an exact alarm (setExactAndAllowWhileIdle) and the exact-alarm permission
Correct. User-facing reminders at a set time are what exact alarms are for.
Why not the others?
- B Lower the periodic interval to 1 minute. The minimum is 15 minutes, and Doze still defers it.
- C Ask users to disable battery optimisation. Heavy-handed and often refused.
- D Keep a foreground service running all night. Drains battery and annoys users.