dpd-gcm

GCM Push notifications for Deployd

Usage no npm install needed!

<script type="module">
  import dpdGcm from 'https://cdn.skypack.dev/dpd-gcm';
</script>

README

GCM Push notifications for Deployd

Install

npm install dpd-gcm --save

Configure

  1. Read https://developer.android.com/google/gcm/gs.html
  2. Create a GCM resource in Dashboard
  3. Set your API key in Settings

Usage

dpd.resourcename.post(
    {
        message:"Your message here",
        devices:["deviceID1","deviceID2", ...]
    }, 
    function(result, err){
    }
)