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 Sound after app killed, the solution you can add some properties #51

Closed hariantara closed 4 years ago

hariantara commented 5 years ago

Hi,

on your documentation on NPM website you forget to add some properties inside the notifications

"notification": { "title": "notif title", "body": "notif body", **"sound": "default", "icon": "ic_icon", "priority": "high", "content_available": true** },

jlcvp commented 4 years ago

hi @hariantara, thanks for using this lib. When I created the lib, the sound field wasn't a required one for sound to work. At the that time, when you send a notification, it'll play the default notification sound.