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

can't stop alarms by swiping away in Android API 33 or earlier; can in API 34, #198

Closed ApplySci closed 1 month ago

ApplySci commented 6 months ago

Alarm plugin version 3.1.3

Describe the bug Alarms can be stopped by swiping, in a flutter Android app, if API level is 34. However, the alarm cannot be dismissed by swiping if the API level is 33 or earlier.

To Reproduce Run the example in the repository in the Android Emulator in Android Studio.

With an emulated API 34 device, the alarm can be stopped by swiping the notification away.

With an emulated API 33 (or earlier) device, the notification cannot be swiped away.

Expected behavior Swiping the alarm notification terminates the alarm

Device info Using the Android emulator with API levels 28-33 shows the bug. API level 34 behaves as expected. Android Moto phones with API level lower than 34 show the bug.

gdelataillade commented 1 month ago

I'm closing this issue because in the meantime version 4.0.0 was released including a significant refactoring of the code and many bug fixes. Feel free to reopen if needed !