gdelataillade / alarm

A Flutter plugin to easily manage alarms on iOS and Android
https://pub.dev/packages/alarm
MIT License
132 stars 86 forks source link

iOS: Notification is not dismissed after the alarm is stopped #266

Closed orkun1675 closed 3 weeks ago

orkun1675 commented 4 weeks ago

Alarm plugin version 4.0.7

Describe the bug When the alarm is stopped the notification remains visible in the notification center. Notifications actually remain indefinetly until the user clears them (my device had 5 day old Alarm is ringing notifications).

To Reproduce

  1. Schedule an alarm
  2. Wait for alarm to ring
  3. Stop the alarm by calling Alarm.stopAll()
  4. Check notification. center

Expected behavior Ideally, notifications are auto dimissed once the alarm is stopped as they no longer serve a purpose.

Screenshots N/A

Device info iPhone SE, iOS 18.0.1, physical device

Additional context N/A

gdelataillade commented 3 weeks ago

I’ve just released version 4.0.8 with a fix. Please let me know if it resolves the issue. Thanks!

orkun1675 commented 3 weeks ago

I can verify this is working now. Thanks!