-
Notifications
You must be signed in to change notification settings - Fork 66
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
Firebase integration disables CurrentNotificationActionTapped trigger #451
Comments
@Bindslev Can you please attach a sample project? |
I actually have a similar, but kind of opposite problem (using apns, though).
but this doesnt work anymore. I figured I now have to use the mentioned CustomUserNotificationCenterDelegate, but I don't know how to get my previously used |
Also I can confirm it is not a problem with I tried this:
but what I get is this:
although the notification that was tapped did have a title and description. Again, I assume the data is probably somewhere but I have no clue about the iOS objects and am struggling to find the information I need. Any help would be much appreciated! |
I figured it out with the help of this this
|
Describe the bug
Most likely a configuration issue, but when I use local notifications together with push notifications from firebase (this plugin https://github.com/TobiasBuchholz/Plugin.Firebase), the notifications I get from this plugin doesn't respond to clicks.
So, I actually do receive both notifications as I should, but my local notification contains action buttons, and when I have push notifications enabled, the CurrentNotificationActionTapped won't trigger when clicking the action buttons.
I have added this piece of code from the documentation regarding push notifications:
and my
CustomUserNotificationCenterDelegate
class looks identical to the one in the documentation.In my dependency injection setup, I'm not sure whether to register this plugin, or firebase first, and they act very differently depending on what I register first;
If I register this plugin first, I'll get both local notifications and push notifications, but CurrentNotificationActionTapped is not triggered on the local notification when the action buttons are clicked.
If I register the firebase plugin first, I'll only get local notifications and CurrentNotificationActionTapped is triggered just fine, but push notifications won't appear at all.
Any guidance would be much appreciated. Everything works just fine in isolation.
To Reproduce
Steps to reproduce the behavior:
Install firebase cloud messaging in an app with this plugin and add action buttons to the local notification. Now CurrentNotificationActionTapped won't trigger if clicked.
Expected behavior
I would expect that the CurrentNotificationActionTapped is triggered AND that I can also retrieve push notifications. - Again, both of those work in isolation but not when both are enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Platform (please complete the following information):
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: