Why is Doze mode not affecting AlarmManager setExact() method?

Syed Noorullah Shah

New member
Oct 2, 2019
3
0
0
I'm trying to test the behavior of my Android app when the OS goes in Doze mode. I'm using a gennymotion emulator running Android API 25. The application launches an IntentService through the AlarmManager using the method setExact with type RTC_WAKEUP. I set the alarm to fire after 1 minute (only for testing purposes).I succeed to put the emulator in IDLE state by running the suggested dumpsys (force-idle) command.
When the device is IDLE I'm still able to see the IntentService being launched by the alarm. This should not be the expected behavior according to the docs. I was expecting the opposite(since according to docs, setExact() is not triggered if the device is on doze mode).
I have even tested this on a real device (running Android 6) and getting the same results.

Is this a bug? Or am I missing something?
 
Moving this to the developer forum for better exposure. (And I apologize for not giving you an answer, but I've never played with setExact() or doze.)
 

Latest posts

Trending Posts

Members online

Forum statistics

Threads
962,015
Messages
6,988,740
Members
3,164,761
Latest member
bonitaguru25