Google I/O 2012 - Google Cloud Messaging for Android
Why Stack Overflow recommends it
Stack Overflow users link it as the official walkthrough of GCM, using it to answer questions on delivery guarantees, time-to-live, battery use and syncing patterns.
Recommended by 7 people across 7 different months, 2012 to 2013.
What it is
A Google I/O 2012 session by Francesco Nerieri introducing Google Cloud Messaging for Android, the replacement for the beta C2DM service. It walks through the service end to end, covering new features such as message expiry and how push delivery works.
What people said
Recommends Domi · 2012-03 · Stack Overflow · on “How to set a timeout/expiration on a C2DM message?”
C2DM does not have such a feature. Please have a look here: how to set valid time period for android c2dm message? [LINK] Update: Google just released a new version of c2dm called "Google Cloud Messaging (GCM)". With GCM it is possible to use a timeout for your messages: I really recommend the Google I/O 2012 "Google Cloud Messaging for Android" session available here: [this video] Additionally you can read through the GCM ttl section: [LINK]
Recommends Alex Lockwood · 2012-08 · Stack Overflow · on “Android Chat Service”
Applications like Google Talk and other instant messaging programs often use Google Cloud Messaging [LINK] . There was a Google I/O talk [this video] about this that you might find interesting.
Recommends Himanshu Dhakecha · 2012-10 · Stack Overflow · on “How to send data from server to android application to specific USER and to GROUP”
yes, exectly GCM is the greatest way for this requirement. Read this document with concentrate and you will achieve you goal. Because i have experienced with GCM : [LINK] Also lets have look with this video it also more help full to you : [this video]
Recommends Nitin Sethi · 2012-12 · Stack Overflow · on “Android GCM delivery monitoring”
Google claims that the processing at their GCM server takes less than a millisecond. Link below for a great video on GCM from Google's developer. And it's believable coz I could get push notifications almost instantaneously using my company's server to my device now. [this video] They don't guarantee delivery, but they try for a max of 4 weeks to deliver the message depending on the duration you set in the message you send to Google's GCM servers and if you wish to let Google keep the data for eventual delivery of message to the device in case the device was offline when the message was to be delivered. However, there are certain conditions under which the GCM messages are not delivered. Backgrou
Recommends CommonsWare · 2013-01 · Stack Overflow · on “How does exactly android's push notification work?”
Here are the Google I|O 2012 video about GCM [this video] and the Google I|O 2010 video about its C2DM precursor [LINK] .
Recommends Corey Scott · 2013-02 · Stack Overflow · on “A cloud solution to synchronize app database in Android”
I can strongly recommend that you look into using Google Cloud Messaging, and more specifically. The "Send to Sync" pattern. As to the specifics of the detecting record changes and syncing, I cannot offer good advice except to say that this feature is done by many database system so you might want to look into how they solve it. Most common ones include timestamps and version numbers. Reference links: Google I/O session on GCM (I find this a nice intro to get you started on GCM) [this video] Google Cloud Messaging documentation (link direct to send to sync) [LINK]
Recommends Alex · 2013-03 · Stack Overflow · on “Websockets versus GCM under Android: battery usage?”
Since multiple applications use GCM which uses a single socket connection to the Google cloud, making your application use GCM for notifications should not affect battery life at all since it just uses an existing connection. On the other hand, what ever process you create using websockets, that battery usage will just be added on top of GCM. Also, if you need to maintain your connection even when the application is not in the foreground it will be necessary to create your application as a foreground service. GCM handles this for you. Update A device that has no other applications using GCM is a very rare case since many essential applications like gmail use GCM. I do not have exact numbers
Cites julien dumortier · 2012-09 · Stack Overflow · on “how to get the list of devices which are registered in Google Cloud Messaging server”
i found my response in this video: [this video] 38min 40sec to summarize, the developers to think, there is no way !
Cites Munish Kapoor · 2012-10 · Stack Overflow · on “Is it possible Sync Android app with Google Cloud Messaging”
I have read the GCM detail from Google WebSite [LINK] and watched the Google IO Video [this video] . But in the Video and GCM Documentation there is example GCM Send one same message to multiple android devices. But in my app I don't want to send the same message to multiple android device. For Example I have two android devices with different google account and I want to Sync Notes in app with GCM. First device register with one@gmail.com Second device register with two@gmail.com First device have different Notes. and Second device have different Notes If I update notes on server for first device. I want it will Sync with first device(one@gmail.com) not with Second device(two@gmail.com) Is it po
Cites CommonsWare · 2012-12 · Stack Overflow · on “Push messages do not come when on 3G?”
@sandalone: Ah, that. My primary source is a 2010 Google I|O conference presentation on C2DM, where they opened the kimono a bit on the implementation: [LINK] I seem to recall some related material was in the 2012 Google I|O presentation on GCM: [this video]