jlcvp / fcm-node

A Node.JS simple interface to Google's Firebase Cloud Messaging (FCM) for Android & iOS & Web Notification and data push
MIT License
125 stars 46 forks source link

No way to set Priority for data messages #54

Closed akshaycrt2k closed 4 years ago

akshaycrt2k commented 4 years ago

Hi, I've tried adding options to the message payload, but I always get an error like this:

{ code: 'messaging/invalid-payload', message: 'Messaging payload contains an invalid "options" property. Valid properties are "data" and "notification".' }, codePrefix: 'messaging' }

Please let me know if there is a way to set priority

jlcvp commented 4 years ago

see this firebase doc to find out the fields required to set a message priority