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

push_service

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

push_service

A Node module that helps you send push notifications

  • 0.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Push Service for Node

This is a Node module to work with push notifications for iOS and Android.

It will work with other devices later.

How it works

npm install push_service --save
var push = new require('push_service')({
    apnKeyDevel: 'path/to/developmentKey',
    apnKeyProd: 'path/to/productionKey',
    apnCerDevel: 'path/to/developmentCertificate',
    apnCerProd: 'path/to/productionCertificate',
    apnPassphrase: 'Your APN Passphrase',
    gcmSenderId: 'Your Google GCM SenderID'
});

var message = {
    title: 'Your message title',
    message: 'Your message message',
    to: 'token or array of tokens', // [token1, token2, token3]
    data: { // Your payload
        messageId: 10,
        messageInfo: 'This info you arrive to your device as a payload'
    }
};

push.sendTo('android', message).then(function() {
    console.log('Message sent!');
});

FAQs

Package last updated on 05 Nov 2014

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