I\'m trying to create an alarm based application. I\'m using AlarmManager. The thing is that it\'s not reliable at all. In some devices it works.. in other devi
There's change in how AlarmManager works made in API19. So I assume it "works" on pre API19 but does "not work" on newer devices. Here's why:
Note: Beginning with API 19 (KITKAT) alarm delivery is inexact: the OS will shift alarms in order to minimize wakeups and battery use. There are new APIs to support applications which need strict delivery guarantees; see setWindow(int, long, long, PendingIntent) and setExact(int, long, PendingIntent). Applications whose targetSdkVersion is earlier than API 19 will continue to see the previous behavior in which all alarms are delivered exactly when requested.