Katie McCormick | 76c6d86 | 2012-06-25 09:56:29 -0700 | [diff] [blame] | 1 | page.title=Google Cloud Messaging for Android |
Joe Fernandez | 33baa5a | 2013-11-14 11:41:19 -0800 | [diff] [blame] | 2 | page.tags=gcm |
Scott Main | 5f7b668 | 2012-11-30 16:50:00 -0800 | [diff] [blame] | 3 | header.hide=1 |
Katie McCormick | 76c6d86 | 2012-06-25 09:56:29 -0700 | [diff] [blame] | 4 | @jd:body |
| 5 | |
| 6 | |
Scott Main | 5f7b668 | 2012-11-30 16:50:00 -0800 | [diff] [blame] | 7 | <div class="landing-banner"> |
Joe Fernandez | 95f6c75 | 2013-05-14 16:10:58 -0700 | [diff] [blame] | 8 | |
Scott Main | 5f7b668 | 2012-11-30 16:50:00 -0800 | [diff] [blame] | 9 | <div class="col-5" style="min-height:100px"> |
| 10 | <img src="{@docRoot}images/gcm/gcm-logo.png" /> |
| 11 | </div> |
| 12 | <div class="col-7"> |
Katie McCormick | 76c6d86 | 2012-06-25 09:56:29 -0700 | [diff] [blame] | 13 | |
Scott Main | 5f7b668 | 2012-11-30 16:50:00 -0800 | [diff] [blame] | 14 | <h1 itemprop="name" style="margin-bottom:0;">Google Cloud Messaging for Android</h1> |
| 15 | <p itemprop="description"> |
| 16 | Google Cloud Messaging for Android (GCM) is a service that allows you to send data |
kmccormick | eeaac81 | 2013-04-18 10:57:59 -0700 | [diff] [blame] | 17 | from your server to your users' Android-powered device, and also to receive messages from devices on the same connection. The GCM service handles all aspects of queueing of messages and delivery to the target Android application running on the target device. GCM is completely free no matter how big your messaging needs are, and there are no quotas. |
| 18 | </p> |
Joe Fernandez | 95f6c75 | 2013-05-14 16:10:58 -0700 | [diff] [blame] | 19 | |
kmccormick | eeaac81 | 2013-04-18 10:57:59 -0700 | [diff] [blame] | 20 | </div> |
| 21 | </div> |
| 22 | |
| 23 | <div class="landing-docs"> |
| 24 | <div class="col-6 normal-links"> |
| 25 | <h3 style="clear:left">Key Developer Features</h3> |
| 26 | <h4>Send data from your server to users' Android-powered devices</h4> |
| 27 | <p>This could be a lightweight |
Scott Main | 5f7b668 | 2012-11-30 16:50:00 -0800 | [diff] [blame] | 28 | message telling your app there is new data to be fetched from the |
| 29 | server (for instance, a movie uploaded by a friend), or it could be a message containing |
kmccormick | eeaac81 | 2013-04-18 10:57:59 -0700 | [diff] [blame] | 30 | up to 4kb of payload data (so apps like instant messaging can consume the message directly). <a href="{@docRoot}google/gcm/gcm.html">GCM Architectural Overview.</a></p> |
Joe Fernandez | 95f6c75 | 2013-05-14 16:10:58 -0700 | [diff] [blame] | 31 | |
kmccormick | eeaac81 | 2013-04-18 10:57:59 -0700 | [diff] [blame] | 32 | <h4>Send "send-to-sync" messages</h4> |
Joe Fernandez | 95f6c75 | 2013-05-14 16:10:58 -0700 | [diff] [blame] | 33 | <p>A send-to-sync (collapsible) message is often a "tickle" that tells a mobile application to sync data from the server. For example, suppose you have an email application. When a user receives new email on the server, the server pings the mobile application with a "New mail" message. This tells the application to sync to the server to pick up the new email. |
kmccormick | eeaac81 | 2013-04-18 10:57:59 -0700 | [diff] [blame] | 34 | <a href="{@docRoot}google/gcm/adv.html#s2s">Send-to-sync messages</a>.</p> |
| 35 | </a> |
Joe Fernandez | 95f6c75 | 2013-05-14 16:10:58 -0700 | [diff] [blame] | 36 | |
kmccormick | eeaac81 | 2013-04-18 10:57:59 -0700 | [diff] [blame] | 37 | <h4>Send messages with payload</h4> |
| 38 | <p>Unlike a send-to-sync message, every "message with payload" (non-collapsible message) is delivered. The payload the message contains can be up to 4kb. |
| 39 | <a href="{@docRoot}google/gcm/adv.html#payload">Messages with payload</a>.</p> |
| 40 | </div> |
| 41 | |
| 42 | |
| 43 | <div class="col-6 normal-links"> |
| 44 | <h3 style="clear:left">New Features</h3> |
| 45 | <h4>Faster, easier GCM setup</h4> |
| 46 | <p>Streamlined registration makes it simple and fast to add GCM support to your Android app. <a href="{@docRoot}google/gcm/gs.html">Learn more »</a></p> |
| 47 | <h4>Upstream messaging over XMPP</h4> |
| 48 | <p>GCM's Cloud Connection Service (CCS) lets you communicate with Android devices over a persistent XMPP connection. The primary advantages of CCS are speed, and the ability to receive upstream messages (that is, messages from a device to the cloud). You can use the service in tandem with existing GCM APIs. Use <a href="https://services.google.com/fb/forms/gcm/">this form</a> to sign up for CCS. <a href="{@docRoot}google/gcm/ccs.html">Learn more »</a></p> |
Joe Fernandez | 95f6c75 | 2013-05-14 16:10:58 -0700 | [diff] [blame] | 49 | |
kmccormick | eeaac81 | 2013-04-18 10:57:59 -0700 | [diff] [blame] | 50 | <h4>Seamless multi-device messaging</h4> |
| 51 | <p>Maps a single user to a notification key, which you can then use to send a single message to multiple devices owned by the user. Use <a href="https://services.google.com/fb/forms/gcm/">this form</a> to sign up for User Notifications. <a href="{@docRoot}google/gcm/notifications.html">Learn more »</a></p> |
kmccormick | f788ac1 | 2013-05-30 19:06:41 -0700 | [diff] [blame] | 52 | |
| 53 | <h4>Get Started</h4> |
| 54 | <p>Get started using the new features with a tutorial that walks you through creating a GCM app. <a href="{@docRoot}google/gcm/gs.html">Learn more »</a></p> |
kmccormick | eeaac81 | 2013-04-18 10:57:59 -0700 | [diff] [blame] | 55 | </div> |
| 56 | |
Scott Main | 5f7b668 | 2012-11-30 16:50:00 -0800 | [diff] [blame] | 57 | </div> |
Katie McCormick | 76c6d86 | 2012-06-25 09:56:29 -0700 | [diff] [blame] | 58 | |
Katie McCormick | 7cd6dcd | 2012-07-03 14:36:05 -0700 | [diff] [blame] | 59 | |