My app uses AlarmManager and it has been working since 4 years ago. But I noticed it started failing in some devices.
I\'m pretty sure code is right (I\'m using Wak
I also have an app that sets alarms.The solution is to use AlarmManager.setAlarmClock() on api >= 21. This is unaffected by doze afaik and has the added bonus of putting an alarm clock icon in the system tray.