1.0.0-1 • Published 8 years ago

hand-over-gcm v1.0.0-1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

view on npm downloads per month node version build status test coverage license

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

License

MIT