It is mentioned the following at the link hereafter (Pertaining to Doze mode in API level 23):
- If you need to set alarms that fire while in Doze, use setAndAllowWhileIdle() or setExactAndAllowWhileIdle().
- Alarms set with setAlarmClock() continue to fire normally — the system exits Doze shortly before those alarms fire.
What is the difference between setExactAndAllowWhileIdle and setAlarmClock, in regards to Doze mode?
Is setAlarmClock an exact Alarm?