Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

Schema app cloud gcm

Ben Lenser edited this page Dec 28, 2013 · 5 revisions

Schema Google Cloud Messaging send payload

Info

If some event happens

  • CHALLENGE_REQUEST,
  • CHALLENGE_DECLINED,
  • CHALLENGE_ACCEPTED

backend sends it to gcm backend, which delegates it to the application.

Credentials

android.googleapis.com/gcm/send
port: 443
header:	"Content-Type":"application/json",
   	'Content-Length': dataString.length,       
        "Authorization":"key=AIzaSyAzFGj3pOuMyhQq9udWWplVbWMQFKMuS1g"

Type

POST (https)

Parameter Example(has to be send as JSON Body)

        {
            "registration_ids":["mfioewomo","k3d3093kdi3"], 
            "data":{ ... }  
        }