AlarmKit - Behaviors when dismissing alarms

Hi Team,

We've been developing our application with the fairly new AlarmKit. We are using the stopIntent to run some quick logic when the user stops the alarms.

The stopIntent is a LiveActivityIntent and works well when the user presses the button the dismiss button on the alarm.

But unfortunately we've realized some interesting behavior in the following two cases:

  • In case the alarm fires while the user has unlocked their screen and they do things on the screen, the alarm is dismissed (and stopped), but the stopIntent is not executed.
  • In case the alarm fires while the user has unlocked their screen and they swipe up the Live Activity banner, the alarm is also dismissed (and stopped), but again the stopIntent is not executed.

I've tried to look up for some information, but could not find anything meaningful for this specific case. We're wondering if that is something that is planned to get fixed in the future, or maybe there's a workaround.

We've tried also alternative - listening to alarm updates via the AlarmManager, but we are not very eager to create listener task for it, also the alarm state does not provide updates for dismissed.

Thanks!

AlarmKit - Behaviors when dismissing alarms
 
 
Q