At "3.4 Check the state of the alarm" the code is not working as expected .
while testing the app at android 9 virtual device after kill and reopen the app and without the notification activated the alarmUp boolean stays constantly true
the problem seems to be that with the current code the pending intent is not canceled . i had to call notifyPendingIntent.cancel(); to really kill the pending intent
At "3.4 Check the state of the alarm" the code is not working as expected . while testing the app at android 9 virtual device after kill and reopen the app and without the notification activated the alarmUp boolean stays constantly true