New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fcm-call

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fcm-call

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.

  • 2.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
21
decreased by-12.5%
Maintainers
1
Weekly downloads
 
Created
Source

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! :)

Keywords

FAQs

Package last updated on 31 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc