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

Provide notification onTap, onDismissed callbacks #207

Open smjxpro opened 5 months ago

smjxpro commented 5 months ago

Is your feature request related to a problem? Please describe. I was trying to create a reminder app. But couldn't register onTap, onDismissed callbacks.

Describe the solution you'd like Provide those callbacks on Alarm.init() or in Alarm.set() methods as parameters.

Describe alternatives you've considered Tried leveraging the ringStream but doesn't work.

Additional context My app requires something to do other than just dismiss the notification and or open the notification.

gdelataillade commented 5 months ago

Hi @smjxpro

The notification onTap and onDismiss callbacks would be great features to add. Unfortunately, I’m currently the only developer on this plugin and have other priorities, but I will add it to my to-do list. Contributions are welcome if you’re interested.

hafidzaini commented 4 months ago

this is what im waiting for for next release 😄

gdelataillade commented 3 months ago

This is not in WIP at the moment but in the next release you will probably (if everything goes right) have notification action buttons (stop & snooze) !

hafidzaini commented 3 months ago

perfet. thank you very much.

i wish i know dart and git better so i could help and do pull request 😂

gdelataillade commented 3 weeks ago

About the onTap callback, I was working on it but faced a technical limitation on Android. If someone with Kotlin experience could help me this PR #275 it would be great !