bytefish / FcmSharp

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

FcmSharp.Requests.Notification missing fields #9

Closed Extentsoftware closed 6 years ago

Extentsoftware commented 6 years ago

Hi

With reference to https://firebase.google.com/docs/cloud-messaging/http-server-ref#notification-payload-support would it be possible to add a "sound" property to the FcmSharp.Requests.Notification message?

bytefish commented 6 years ago

FcmSharp supports two Firebase protocols. The old FcmSharp versions below 2.0 use the Legacy HTTP API, that you are refering to. All FcmSharp versions from 2.0 on are based on the new FCM v1 protocol: https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages.

The Protocol has objects like AndroidNotification:

The AndroidNotification contains the sound property, that you are looking for.