Have ideas to improve npm?Join in the discussion! »

    hand-over-gcm

    1.0.0-1 • Public • Published

    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

    Install

    npm i hand-over-gcm

    DownloadsWeekly Downloads

    0

    Version

    1.0.0-1

    License

    MIT

    Last publish

    Collaborators

    • avatar