[フレーム]
BT

InfoQ Software Architects' Newsletter

A monthly overview of things you need to know as an architect or aspiring architect.

View an example

We protect your privacy.

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Unlock the full InfoQ experience

Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with content, and download exclusive resources.

Log In
or

Don't have an InfoQ account?

Register
  • Stay updated on topics and peers that matter to youReceive instant alerts on the latest insights and trends.
  • Quickly access free resources for continuous learningMinibooks, videos with transcripts, and training materials.
  • Save articles and read at anytimeBookmark articles to read whenever youre ready.

Topics

Choose your language

InfoQ Homepage News Google Cloud Messaging for Android (GCM) Unveiled, to Replace C2DM Framework

Google Cloud Messaging for Android (GCM) Unveiled, to Replace C2DM Framework

Leia em PortuguÃas

This item in japanese

Aug 13, 2012 2 min read

Write for InfoQ

Feed your curiosity. Help 550k+ global
senior developers
each month stay ahead.
Get in touch

Google has unveiled its Google Cloud Messaging for Android (GCM) service, which improves upon the deprecated Cloud to Device Messaging framework (C2DM) it replaces with no quotas, no sign-up forms and a richer set of new APIs.

GCM offers the ability to introduce a broker in between an application server and Android devices, guaranteeing cloud-type scalable communication between the two parties. GCM defines the contract so both a server and Android applications register for the GCM service and Google GCM servers maintain communication between them. The GCM servers handle all aspects of queuing messages and delivery to the target applications running on Android devices.

GCM also offers another set of important features. For example, the Android devices do not poll to receive communication. Instead, GCM servers push data onto a registered device when it's sent by an application server. By avoiding polling, the mobile device conserves battery life. In addition, an Android application doesn't necessarily need to be running to receive a message from GCM, if the necessary provisions are made an application is woken up via an Internet broadcast when a message is pushed to the device.

The GCM service now forms part of Google's many other APIs (e.g. Maps, Cloud SQL) that are managed on a per project basis on Google's API console. And unlike other Google APIs, there are no quotas on the GCM service, so it's entirely free for any number of messages or devices using the service.

For users of the old C2DM framework, the service was officialy deprecated on June 26, 2012 , so at any point in time after this date the service can be shutdown without notice. And even though C2DM and GCM are not interoperable, migration between the two platforms is simple. A C2DM-to-GCM migration document is already available to let you take advantage of newer GCM features, as well as developer blog posts about how to replace C2DM with GCM and migrating from C2DM to GCM .

In addition the well developed technical documentation on GCM , many other GCM resources are also available online. Stack Overflow has a series of questions & answers about GCM's inner workings . And if you're looking for a high-level view of GCM, you can see a one hour talk on the GCM platform by Francesco Nerieri (Engineering Manager for GCM) at the Google I/O 2012 conference held in San Francisco.

Rate this Article

Adoption
Style

Related Content

The InfoQ Newsletter

A round-up of last week’s content on InfoQ sent out every Tuesday. Join a community of over 250,000 senior developers. View an example

We protect your privacy.

BT

AltStyle によって変換されたページ (->オリジナル) /