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

Avoid triggering an alarm if another alarm is already ringing #232

Closed razvanghel closed 1 month ago

razvanghel commented 3 months ago

When an alarm is already ringing, and another alarm is scheduled to ring while the first alarm is still ringing, both alarms will ring. This can lead to confusion and synchronization issues.

To address this issue, I propose the following solution: an alarm should only ring if no other alarm is currently ringing. This way, if one alarm is already active, it will prevent any subsequent alarms from ringing until the current one has finished. This ensures that each alarm gets the attention it deserves without overlap, providing a clearer and more manageable alert system.

gdelataillade commented 2 months ago

Hi @razvanghel

I just released version 4.0.0-dev.3 with a fix for your issue. Please upgrade the package and let me know if it works well for you. Be careful with breaking changes.