下载 APKPure App
可在安卓获取GCM Server Helper的历史版本
简单的方法来完成与谷歌云消息传递的服务器端集成
GCM Server Helper is intended to ease the server-side integration with Google Cloud Messaging (GCM).
Prerequisites:
- Create a project on you android dev console
- Enable the GCM API from the project console
- Generate a key for server applications
Instructions:
1. Enter your project number
2. Hit the register button
3. Send the assigned GCM registration id by email to you server\'s developer workstation
4. On the server side, send an HTTP POST message to https://android.googleapis.com/gcm/send with the following characteristics:
http headers: Content-Type: application/json, Authorization: key=XXXXXX
http body: {
"registration_ids":["YYYYYY"],
"delay_while_idle":true,
"data" :
{ "whatever_field_you_want":"whatever_data_you_want"
}
}
where XXXXXX=your_server_api_key and YYYYYY=your_gcm_registration_id
5. Your mobile should vibrate and either show you a notification or display the received GCM message in the app if opened.
Last updated on 2016年02月18日
Minor bug fixes and improvements. Install or update to the newest version to check it out!
GCM Server Helper
1.0 by Hantrinsic
2016年02月18日