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

androidNotificationCallback gets called for unrelated notifications #42

Closed
pkuzco opened this issue Apr 21, 2020 · 2 comments
Closed

androidNotificationCallback gets called for unrelated notifications #42

pkuzco opened this issue Apr 21, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@pkuzco
Copy link

pkuzco commented Apr 21, 2020

androidNotificationCallback gets called when clicking notifications that are shown by other flutter plugins. A payload/id (String) should be passed to androidNotificationCallback, so we are able to tell whether this was triggered as a result of clicking this plugin's foreground service notification or some other unrelated notification.

How to reproduce?

  1. Show some notification using flutter_local_notifications
  2. Click on that shown notification from (1)
  3. androidNotificationCallback will be called even though the notification was not shown by background_locator.
@mehdok
Copy link
Collaborator

mehdok commented Apr 22, 2020

That's really really strange, can you create a simple project to test this?

@mehdok mehdok added the bug Something isn't working label Apr 26, 2020
mehdok added a commit that referenced this issue Apr 26, 2020
* #34 #41 Restart locator service after reboot;

* #42 Fix triggering android notification callback with wrong notification;
@mehdok mehdok closed this as completed Apr 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants