5. 大佬们
Apple
• APNS (“A” for “Apple”, not “Android”)
Google
• C2DM -> Google Cloud Messaging (GCM)
Microsoft
• Direct Push, Exchange ActiveSync, long lived https
RIM
• Push Technology, Push Mail
Nokia
• Symbian, Push mail
7. Google Cloud Messaging
l 从C2DM (Cloud to Device Messaging)发展而来
l 参考:
• Google Cloud Messaging for Android
http://developer.android.com/guide/google/gcm/index.html
• Google IO 2012: Google Cloud Messaging for Android
https://developers.google.com/events/io/sessions/gooio2012/100/
• Google IO 2010: Building push applications for Android
http://dl.google.com/googleio/2010/android-push-applications-
android.pdf
8. GCM case study -- Chrome to Phone
Source: Google IO Chrome to Phone
9. 组成
Mobile
Device
Applica
tion
Server
GCM Servers
Sender ID
Application Sender Auth
ID Token
Credentials
Registration Google User
ID Account
Reference: http://developer.android.com/guide/google/gcm/gcm.html
10. GCM Service your app app server
1.1. app_id, sender_id
1.2. app_id, sender_id, device_id
2.1. REG_ID
2.2. REG_ID
3. REG_ID
4. REG_ID, API Key, message
5.1. message
5.2. notification