We have a few repeating alarms setup and they work normally most of the time. Sometimes though they get stuck (probably canceled somehow). How to debug it to make sure an alarm is actually off when it seems stuck?
Regarding the reasons for the alarm to be cancelled: I'm aware it happens when the user force stops your app from Applications Manager. Can the system also randomly cancel it? (say when killing your whole app to reclaim resources?)
adb shell dympsys alarm | grep "app.package.name"
and if you're on PowerShell you can useadb shell dumpsys alarm | Select-String -Pattern "app.package.name"
– Lot