diff --git a/docs/html/guide/google/gcm/adv.jd b/docs/html/guide/google/gcm/adv.jd index aa66e25bdd11c..356ee1d2b0032 100644 --- a/docs/html/guide/google/gcm/adv.jd +++ b/docs/html/guide/google/gcm/adv.jd @@ -163,7 +163,7 @@ registerReceiver(mRetryReceiver, filter);
There are two ways to unregister a device from GCM: manually and automatically.
An Android application can manually unregister itself by issuing a com.google.android.c2dm.intent.UNREGISTER intent, which is useful when the application offers a logoff feature (so it can unregister on logoff and register again on logon). See the Architectural Overview for more discussion of this topic. This is the sequence of events when an application unregisters itself:
com.google.android.c2dm.intent.UNREGISTER intent, passing the registration ID (the application should have saved its registration ID when it received the proper com.google.android.c2dm.intent.REGISTRATION intent).com.google.android.c2dm.intent.UNREGISTER intent, passing the package name as an extra.com.google.android.c2dm.intent.REGISTRATION intent with the unregistered extra set.false.
+ false.
Note: The GCM client is the Google Cloud Messaging framework present on the device.
+Note that it might take a while for the registration ID be completely removed from GCM. Thus it is possible that messages sent during step 7 above gets a valid message ID as response, even though the message will not be delivered to the device. Eventually, the registration ID will be removed and the server will get a NotRegistered error, without any further action being required from the 3rd-party server (this scenario happens frequently while an application is being developed and tested).
Retry-After header
- included in the response. Application servers must implement exponential back-off. The GCM server took too long to process the request. TroubleshootRetry-After header included in the response. Application servers must implement exponential back-off. Troubleshooterror field of a JSON object in the results array is Unavailable.
+Happens when the HTTP status code is between 501 and 599, or when the error field of a JSON object in the results array is Unavailable.
error field of a JSON
object in the results array is InternalServerError.
diff --git a/docs/html/guide/google/gcm/gs.jd b/docs/html/guide/google/gcm/gs.jd
index 93eb79448e2c1..8d132d859020c 100644
--- a/docs/html/guide/google/gcm/gs.jd
+++ b/docs/html/guide/google/gcm/gs.jd
@@ -145,7 +145,9 @@ page.title=GCM: Getting Started
getSenderIds() method.Next write the my_app_package.GCMIntentService class, overriding the following callback methods (which are called by GCMBroadcastReceiver):