Google Cloud Messaging plugin for Handover.
const Handover = require('hand-over')
new Handover().use('gcm', 'your-gcm-api-key')
.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.
With npm:
npm install hand-over-gcm