android: Google Cloud Messaging (GCM)
来源:互联网 发布:nodejs 去掉空数组 编辑:程序博客网 时间:2024/05/10 00:32
GCM是第二代的google message service, 第一代是c2dm。 目前c2dm已经相当于不能用了,因为它不在允许新的android注册和使用c2dm。
如何创建一个最简单的app和相关的server side. (ref link)
1. 首先要有一个google account,and then access Google APIs Console page (https://code.google.com/apis/console).
2. 在"Dashboard" page里为你的要使用gcm的android app创建一个project: 在该page select左上角的下拉框 "Other projects > Create",然后给一个project name。
3. 创建好project后,就会进入该project的management web page。查看该page的url (类似于: https://code.google.com/apis/console/?pli=1#project:1241100000:overview),其中的"1241100000"将会作为GCM sender ID!!
4. click "Services" tab, Turn “Google Cloud Messaging” toggle to ON
5. click "API Access" tab, click "Create new Server key", click "Create" button. 这就会创建一个Key for server apps。其中的API key等下会用到。
如何创建一个最简单的app和相关的server side. (ref link)
1. 首先要有一个google account,and then access Google APIs Console page (https://code.google.com/apis/console).
2. 在"Dashboard" page里为你的要使用gcm的android app创建一个project: 在该page select左上角的下拉框 "Other projects > Create",然后给一个project name。
3. 创建好project后,就会进入该project的management web page。查看该page的url (类似于: https://code.google.com/apis/console/?pli=1#project:1241100000:overview),其中的"1241100000"将会作为GCM sender ID!!
4. click "Services" tab, Turn “Google Cloud Messaging” toggle to ON
5. click "API Access" tab, click "Create new Server key", click "Create" button. 这就会创建一个Key for server apps。其中的API key等下会用到。
Note: If you need to rotate the key, click Generate new key. A new key will be created while the old one will still be active for up to 24 hours. If you want to get rid of the old key immediately (for example, if you feel it was compromised), click Delete key.
6. 剩下的步骤就是开发client side and server side code,参看http://developer.android.com/guide/google/gcm/gs.html
GCM server side C# version:
http://www.dotblogs.com.tw/shadow/archive/2012/07/05/73236.aspx
- android: Google Cloud Messaging (GCM)
- Google Cloud Messaging(GCM) for Android
- google cloud messaging(GCM)机制.
- 使用Google Cloud Messaging (GCM)服务实现Android消息推送
- Android Push Notifications using Google Cloud Messaging GCM
- Android 使用GCM(Google Cloud Messaging)推送消息
- Google Cloud Messaging(GCM Google云推送)
- Google Cloud Messaging(GCM Google云推送)
- Google Cloud Messaging(GCM) for Android, android平台消息推送技术(二):GCM推送
- Google Cloud Messaging(GCM) for Android, android平台消息推送技术(一):建立Google API 项目
- 使用GCM服务(Google Cloud Messaging)实现Android消息推送
- 使用GCM服务(Google Cloud Messaging)实现Android消息推送
- Android Push Notifications using Google Cloud Messaging (GCM), PHP and MySQL
- 使用GCM服务(Google Cloud Messaging)实现Android消息推送
- 使用GCM服务(Google Cloud Messaging)实现Android消息推送
- php实现 GCM(Google Cloud Messaging) 云推送消息
- 11.20 python - Google Cloud Messaging (GCM) HTTP connection server.
- Google Cloud Messaging for Android
- 如何防止在listbox中添加很多数据出现不停的刷新
- 双系统问题解决:cannot find GRLDR in all devices
- Hibernate学习
- NavigationController的使用
- C++中的sort函数
- android: Google Cloud Messaging (GCM)
- Java 乱码解决(Tomcat,encodeURL)
- 寻找宇宙起源“幽灵粒子”
- MFC文件操作
- stm32 设置systick中断抢先式优先级
- 上班第四天
- android中的选择器selector
- IFeatureClass.Search(IQuery Filter,bool Recycling)参数说明
- Message file SP1<lang>.msb not found