bytefish / FcmSharp

Firebase Cloud Messaging (FCM) with .NET
MIT License
6 stars 7 forks source link

Specify single target #32

Closed Polyterative closed 6 years ago

Polyterative commented 6 years ago

How can I send a noitification to a specific target device given a specific FCMToken? How can I specify the target in the request? Can I send a notification to a group of targets at the same time?

bytefish commented 6 years ago

You have to use the Token property for sending to a specific device. See the example at:

As far as I can see in the Firebase documents, there is no way to define Device Groups like in the Legacy Google Cloud Messaging API. Let me know if you find a way with the Firebase Cloud Messaging API, I don't know if it is possible.

Polyterative commented 6 years ago

Thanks