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

Foreground notification click event #2272

Closed
praveengitsit-pro opened this issue Mar 18, 2024 · 1 comment
Closed

Foreground notification click event #2272

praveengitsit-pro opened this issue Mar 18, 2024 · 1 comment

Comments

@praveengitsit-pro
Copy link

Not sure this is a bug but I looked through the documentations and could not find anything for this feature.

Describe the bug
I cannot know when a user clicked on a notification when app is in foreground

To Reproduce

  1. App is in foreground
  2. App receives notification
  3. User clicks on notification
  4. Nothing happens

Expected behavior
I want something like the FirebaseMessaging's onMessageOpenedApp method that exposes when a user has clicked on a notification when app is in background.

@MaikuB
Copy link
Owner

MaikuB commented May 17, 2024

This is explained in the readme at https://github.com/MaikuB/flutter_local_notifications/tree/master/flutter_local_notifications#initialisation and the repo has an example app and this is mentioned in the issue template when trying to submit a report as well

@MaikuB MaikuB closed this as completed May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants