Google Cloud messaging - Sample Server

后端 未结 4 750
清酒与你
清酒与你 2020-12-08 05:48

I need a sample application for Google Cloud messaging. with a sample server to test my app. can any one help me on this?

I need a sample server to test my code i al

4条回答
  •  既然无缘
    2020-12-08 06:11

    "curl" command line tool can be used to send messages to devices registered with GCM.

    curl -X POST \
      -H "Authorization: key= " \
      -H "Content-Type: application/json" \
      -d '{
      "registration_ids": [
        ""
      ],
      "data": {
        "message": ""
      }
    }' \
      https://android.googleapis.com/gcm/send
    

    Please refer to this blog post for further details. http://www.zinniakhan.com/2014/07/check-google-cloud-messaging-gcm-client.html.

提交回复
热议问题