fcm-call
v2.0.0
Published
This package is shortcut of already developed package named (fcm-node). I used this package as a backside and short it for faster usage of Firebase Pushnotification. Currently this package allows mobile notifications.
Downloads
205
Maintainers
Readme
Firebase Cloud Messaging
This package allows you to send notifications to your android device.
Example
let FCM = require('FCM');
const serverKey = '<Your Server Key>';
const referenceKey = '<Your reference key>'; //Device Key
let title = '<Your notification title here.>';
let message = '<Your message here>';
FCM.FCM(serverKey, referenceKey, title, message);
From the above code, you can easily send PushNotification to your dedicated Device easily. :)
You can also pass json inside message.
let FCM = require('FCM');
const serverKey = '<Your Server Key>';
message = {
"to": '<Your reference key>',
"notification": {
"title": '<Your Title>',
"body": '<Your Body>',
"sound": true,
"alert": true,
}
FCM.FCM(serverKey, message);
This aslo will give you a same result. As well as you can also customise notification using it.
Happy Notification! :)