alarm icon indicating copy to clipboard operation
alarm copied to clipboard

Auto stop alarm sound after dismiss notification

Open wiztensai opened this issue 1 year ago • 4 comments

Hi, thanks for the great package.

The alarm is show while i am opening app. Then, how to auto stop alarm sound after user dismiss notification?

wiztensai avatar Apr 10 '23 03:04 wiztensai

Hi @wiztensai

Thank you for your interest in the package !

I'm not sure I understand your request. Can you please explain with more details or explain step by step the behavior you would like to expect.

gdelataillade avatar Apr 10 '23 07:04 gdelataillade

Precondition:

  • App is opening
  • Alarm notification is coming

Step:

  • User swipe out alarm notif in notif tray

Expected behaviour:

  • Alarm sound is stop after user swipe out notif

Reality:

  • The alarm is still ringing

So, how to stop alarm after user swipe out the notif? Thanks

wiztensai avatar Apr 10 '23 12:04 wiztensai

This would be a great feature to add to the plugin. I don't have much time to dedicate to the project, but I will probably develop it sooner or later. Feel free to contribute though.

gdelataillade avatar Apr 12 '23 13:04 gdelataillade

It looks like the creators of local_notification don't provide such functionality. There are no callbacks for the dismissed event

You can only stop the alarm by clicking on the notification. It is not implemented in this alarm package. If it is needed, I can create a pull request with this feature. I've tried it on ios device, but I think it will also work with android because there is no platform specific code.

LesYampolskyi avatar Apr 13 '23 01:04 LesYampolskyi