Sending a Notification with the notification object as null does not send a Notification to the device
#463
wynston-champion-actabl
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When sending a notification (via a server) and setting the
notificationobject to null, the notification is not sent to the device, though, I do get a 200 response (confirmed when tested in Postman). The reason why I am wanting to set this object to null is to keep the server code to be cross compatible between my Xamarin Forms and MAUI app.For Xamarin Forms, I am using a different library (Plugin.FirebasePushNotification), but I am able to set the
notificationobject to null and the notification sends to the device. I'd like to not have to manage two ways of sending notifications for Xamarin Forms and MAUI and allow the code to be cross compatible.Would it at all be possible to allow the
notificationobject to be null?Here is the payload for MAUI that sends a successful notification:
Here is the payload for MAUI that is unsuccessful:
Notice that the
notificationobject, when set to null, does not work.Beta Was this translation helpful? Give feedback.
All reactions