Home

Awesome

TestGcm

Send GCM notification

curl -X POST -H "Authorization: key=AIzaSyAwix-QqbNZBN_LvFhJD3wZOPXKjmtayUo" -H "Content-Type: application/json" -d '
{
  "data": {
    "info": {
      "subject": "Hello GCM2",
      "message": "Hello from the server side!"
    }
  },
  "to" : "GCM_TOKEN"
}' 'https://gcm-http.googleapis.com/gcm/send'

After running this project, you can get gcm token and place GCM_TOKEN of above code. Run this curl command in terminal to test gcm notification.