I set alarms to notify the user on different times. I check with "adb shell dumpsys alarm" and they look like
RTC_WAKEUP #2: Alarm{433c7328 type 0 com.app.package} type=0 whenElapsed=89936417 when=+9h8m5s417ms window=-1 repeatInterval=0 count=0 operation=PendingIntent{42e8e7f8: PendingIntentRecord{42deb070 com.app.package broadcastIntent}}
Sometimes they stay and work for at least 2 days (I didn't test longer), sometimes they are all gone after a few hours or so, even before the first notification should have taken place and "adb shell dumpsys alarm" doesn't show any of my entries anymore. (I tested with 2 devices, Android 4.0 and 4.4)
I do know that the alarm manager forgets the entries after a reboot of the device and I took care of this case and re-add them afterwards. But obviously there are other cases when the alarm manager forgets entries without having rebooted. I would like to know which cases these are and how to handle them.