Closed stesvis closed 3 years ago
I found a few problems with this issue:
Can you share the actual C# code you tried? Above is some JSON, and not executable code.
You're also referencing a third party project (FirebasePushNotificationPlugin), and I can't see the relationship between that and the Admin SDK.
I finally figured it out.
It turns out that I have to send two notifications, one to only android devices, where I only set the data
field, and one to only iOS devices, where I only set the notification
and apns
fields.
This way it works and I can see the action button in the notification try in both platforms.
I still cannot determine how to triage this issue. No actual code or test case has been shared. I'm going to close this as incomplete. Please file a new issue with more details, if there's anything else that needs to be addressed in this repo.
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
I am trying to send a push notification to iOS and Android using FCM and I need to pass a parameter
click_action
as described here (scroll down): https://github.com/CrossGeeks/FirebasePushNotificationPlugin/blob/master/docs/NotificationActions.mdI tried to add that parameter wherever possible, but I do not receive it in the notification. This is the payload generated by
MulticastMessage
:Steps to reproduce:
Use the code above to send a push notification to android or iOS (change the token).