Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to check for alarm stops when stopping from notification stop button? and onTap of Notification. #244

Open
dhavalmnjtech opened this issue Sep 25, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request hacktoberfest

Comments

@dhavalmnjtech
Copy link

Alarm plugin version
4.0.0-dev.3

How i check for is my alarm is stopped from notification stop button.
In my app to stop alarm i am using Alarm.stop(id); to stop the alarm so here after i called it i can do something in my code,
but what about stopping alarm from notification button? here i have to call a function when i stop alarm from notification

as me, you can provide onStop method when stop from notification stop button.
If there is method like this then everyone can perform some task on alarm stop from stop button of notification.

And also need onTap of notification
If there is onTap for notification then user can perform task accordingly.

Additional context
For my app i have to show non dismissible notification when user stops the alarm. This is possible when i use Alarm.stop(id); but need to do from notification stop button. I used flutter_local_notifications for non dismissible notification.
And also want to open Alarm screen when tap on notification, so for it onTap is useful.

@dhavalmnjtech dhavalmnjtech added the enhancement New feature or request label Sep 25, 2024
@gdelataillade
Copy link
Owner

Hi @dhavalmnjtech

Thanks for your interest in the package.

I'll consider adding a onStop callback when the alarm is stopped from the notification and a onTap when app is opened from the notification. I'll keep you updated here.

@dhavalmnjtech
Copy link
Author

dhavalmnjtech commented Oct 8, 2024

Hello @gdelataillade

Thank you for your reply.

That's great, if it will done. and it's can be very helpful for all.

@gdelataillade
Copy link
Owner

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants