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

How do you stop the alarm once it starts ringing? #167

Closed deep526 closed 8 months ago

deep526 commented 8 months ago

If I click the notification it just takes me back to the app, but ring.dart won't open if I wasn't on the ExampleAlarmScreen before I went off the app.

Is there a way to allow users to stop the alarm when they press the notification which leads them to the app?

gdelataillade commented 8 months ago

Hi @deep526

In the example app, navigation is triggered thanks to the ringStream listener. Make sure to have the listener active or to reopen it when you reopen the app.

Let me know if you have any questions !