OLD | NEW |
1 <meta name="doc-family" content="apps"> | 1 <meta name="doc-family" content="apps"> |
2 <h1 id="gcm">Google Cloud Messaging</h1> | 2 <h1 id="gcm">Google Cloud Messaging</h1> |
3 | 3 |
4 <p>Google Cloud Messaging (GCM) is a service for both Android-powered device and | 4 <p>Google Cloud Messaging (GCM) is a service for both Android-powered device and |
5 Chrome instances to send and receive message data from servers. <a href="gcm">GC
M Chrome | 5 Chrome instances to send and receive message data from servers. <a href="gcm">GC
M Chrome |
6 API</a> allows the Chrome apps or extensions to access the GCM | 6 API</a> allows the Chrome apps or extensions to access the GCM |
7 service for the signed-in Chrome users. The service works even if an app or | 7 service for the signed-in Chrome users. The service works even if an app or |
8 extension isn't currently running. For example, calendar updates could be pushed | 8 extension isn't currently running. For example, calendar updates could be pushed |
9 to users even when their calendar app isn't open. </p> | 9 to users even when their calendar app isn't open. </p> |
10 | 10 |
11 <p>To use both API and service, you must agree to the <a href="https://developer
s.google.com/terms/">Google APIs Terms of | 11 <p>To use both API and service, you must agree to the <a href="https://developer
s.google.com/terms/">Google APIs Terms of |
12 Service</a> and <a href="https://developers.google.com/cloud/terms/">Google Clou
d Platform Terms | 12 Service</a> and <a href="https://developers.google.com/cloud/terms/">Google Clou
d Platform Terms |
13 of Service</a>.</p> | 13 of Service</a>.</p> |
14 | 14 |
15 <p>This document describes how to set up and use GCM. For additional information | 15 <p>This document describes how to set up and use GCM. For additional information |
16 see the reference documentation for the <a href="gcm">GCM Chrome API</a> and | 16 see the reference documentation for the <a href="gcm">GCM Chrome API</a> and |
17 the <a href="http://developer.android.com/google/gcm/index.html">GCM Service</a>
. To get | 17 the <a href="http://developer.android.com/google/gcm/index.html">GCM Service</a>
. To get |
18 help with GCM or to give us feedback, please see | 18 help with GCM or to give us feedback, please see |
19 <a href="#feedback">Feedback</a>.</p> | 19 <a href="#feedback">Feedback</a>.</p> |
20 | 20 |
21 <p>Please note that GCM Chrome API is experimental. It is only available to Chro
me | 21 <p>Please note that GCM Chrome API is experimental. It is only available to Chro
me |
22 users on the dev channel.</p> | 22 users on the dev channel.</p> |
23 | 23 |
24 <p class="note"><strong>API Samples</strong>: Want to play with the code? Check
out the | 24 <p class="note"><strong>API Samples</strong>: Want to play with the code? Check
out the |
25 <a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/gcm-noti
fications">gcm-notifications</a> | 25 <a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/
gcm-notifications">gcm-notifications</a> |
26 sample.</p> | 26 sample.</p> |
27 | 27 |
28 <h2 id="enable_gcm">Enable GCM</h2> | 28 <h2 id="enable_gcm">Enable GCM</h2> |
29 | 29 |
30 <p>To use GCM for your app or extension, do the following:</p> | 30 <p>To use GCM for your app or extension, do the following:</p> |
31 | 31 |
32 <ol> | 32 <ol> |
33 <li>Upload your app or extension client to the <a href="https://developers.googl
e.com/chrome/web-store/docs/publish">Chrome Web | 33 <li>Upload your app or extension client to the <a href="https://developers.googl
e.com/chrome/web-store/docs/publish">Chrome Web |
34 Store</a>.</li> | 34 Store</a>.</li> |
35 <li>A user installs your app or extension.</li> | 35 <li>A user installs your app or extension.</li> |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 <li><strong>Unknown error occurred</strong>: this could happen due to any other
internal | 370 <li><strong>Unknown error occurred</strong>: this could happen due to any other
internal |
371 errors.</li> | 371 errors.</li> |
372 </ul> | 372 </ul> |
373 | 373 |
374 <h2 id="feedback">Feedback</h2> | 374 <h2 id="feedback">Feedback</h2> |
375 | 375 |
376 <p>You can provide feedback about Google Cloud Messaging and the gcm API through | 376 <p>You can provide feedback about Google Cloud Messaging and the gcm API through |
377 the Google Group <a href="https://groups.google.com/forum/#!forum/gcm-for-chrome
-feedback">GCM for Chrome | 377 the Google Group <a href="https://groups.google.com/forum/#!forum/gcm-for-chrome
-feedback">GCM for Chrome |
378 Feedback</a>. | 378 Feedback</a>. |
379 Use this group to ask for help, file bug reports, and request features.</p> | 379 Use this group to ask for help, file bug reports, and request features.</p> |
OLD | NEW |