hand-over-gcm
v1.0.0-1
Published
Google Cloud Messaging plugin for Handover
Downloads
4
Maintainers
Readme
Google Cloud Messaging plugin for Handover.
Usage
const Handover = require('hand-over'),
notifier = new Handover
notifier.use('gcm', 'your-gcm-api-key')
notifier.send('userId', { message: 'Hello GCM!' }, callback)
function callback(err) {
if (err)
console.error(err.stack)
else
console.log('yay!')
}
Note: Options are passed to the node-gcm package's Sender
constructor.
Installation
With npm:
npm install hand-over-gcm