| java.lang.Object | |
| ↳ | com.google.android.gcm.GCMConstants | 
      This class is deprecated.
    Please use the 
 GoogleCloudMessaging API instead.
  
Constants used by the GCM library.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | DEFAULT_INTENT_SERVICE_CLASS_NAME | ||||||||||
| String | ERROR_ACCOUNT_MISSING | There is no Google account on the phone. | |||||||||
| String | ERROR_AUTHENTICATION_FAILED | Bad password. | |||||||||
| String | ERROR_INVALID_PARAMETERS | The request sent by the phone does not contain the expected parameters. | |||||||||
| String | ERROR_INVALID_SENDER | The sender account is not recognized. | |||||||||
| String | ERROR_PHONE_REGISTRATION_ERROR | Incorrect phone registration with Google. | |||||||||
| String | ERROR_SERVICE_NOT_AVAILABLE | The device can't read the response, or there was a 500/503 from the server that can be retried later. | |||||||||
| String | EXTRA_APPLICATION_PENDING_INTENT | Extra used on com.google.android.gcm.GCMConstants.INTENT_TO_GCM_REGISTRATIONto get the application info. | |||||||||
| String | EXTRA_ERROR | Extra used on com.google.android.gcm.GCMConstants.INTENT_FROM_GCM_REGISTRATION_CALLBACKto indicate an error when the registration fails. | |||||||||
| String | EXTRA_FROM | Extra used on com.google.android.gcm.GCMConstants.INTENT_FROM_GCM_MESSAGEto indicate which sender (Google API project id) sent the message. | |||||||||
| String | EXTRA_REGISTRATION_ID | Extra used on com.google.android.gcm.GCMConstants.INTENT_FROM_GCM_REGISTRATION_CALLBACKto indicate the registration id when the registration succeeds. | |||||||||
| String | EXTRA_SENDER | Extra used on com.google.android.gcm.GCMConstants.INTENT_TO_GCM_REGISTRATIONto indicate which senders (Google API project ids) can send messages to
 the application. | |||||||||
| String | EXTRA_SPECIAL_MESSAGE | Type of message present in the com.google.android.gcm.GCMConstants.INTENT_FROM_GCM_MESSAGEintent. | |||||||||
| String | EXTRA_TOTAL_DELETED | Number of messages deleted by the server because the device was idle. | |||||||||
| String | EXTRA_UNREGISTERED | Extra used on com.google.android.gcm.GCMConstants.INTENT_FROM_GCM_REGISTRATION_CALLBACKto indicate that the application has been unregistered. | |||||||||
| String | INTENT_FROM_GCM_LIBRARY_RETRY | Intent used by the GCM library to indicate that the registration call should be retried. | |||||||||
| String | INTENT_FROM_GCM_MESSAGE | Intent sent by GCM containing a message. | |||||||||
| String | INTENT_FROM_GCM_REGISTRATION_CALLBACK | Intent sent by GCM indicating with the result of a registration request. | |||||||||
| String | INTENT_TO_GCM_REGISTRATION | Intent sent to GCM to register the application. | |||||||||
| String | INTENT_TO_GCM_UNREGISTRATION | Intent sent to GCM to unregister the application. | |||||||||
| String | PERMISSION_GCM_INTENTS | Permission necessary to receive GCM intents. | |||||||||
| String | VALUE_DELETED_MESSAGES | Special message indicating the server deleted the pending messages. | |||||||||
| [Expand] Inherited Methods | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class
  java.lang.Object | |||||||||||||||||||||||||||||||||
There is no Google account on the phone. The application should ask the user to open the account manager and add a Google account.
Bad password. The application should ask the user to enter his/her password, and let user retry manually later. Fix on the device side.
The request sent by the phone does not contain the expected parameters. This phone doesn't currently support GCM.
The sender account is not recognized. Fix on the device side.
Incorrect phone registration with Google. This phone doesn't currently support GCM.
The device can't read the response, or there was a 500/503 from the server that can be retried later. The application should use exponential back off and retry.
Extra used on
 com.google.android.gcm.GCMConstants.INTENT_TO_GCM_REGISTRATION
 to get the application info.
Extra used on
 com.google.android.gcm.GCMConstants.INTENT_FROM_GCM_REGISTRATION_CALLBACK
 to indicate an error when the registration fails.
 See constants starting with ERROR_ for possible values.
Extra used on
 com.google.android.gcm.GCMConstants.INTENT_FROM_GCM_MESSAGE
 to indicate which sender (Google API project id) sent the message.
Extra used on
 com.google.android.gcm.GCMConstants.INTENT_FROM_GCM_REGISTRATION_CALLBACK
 to indicate the registration id when the registration succeeds.
Extra used on
 com.google.android.gcm.GCMConstants.INTENT_TO_GCM_REGISTRATION
 to indicate which senders (Google API project ids) can send messages to
 the application.
Type of message present in the
 com.google.android.gcm.GCMConstants.INTENT_FROM_GCM_MESSAGE
 intent.
 This extra is only set for special messages sent from GCM, not for
 messages originated from the application.
Number of messages deleted by the server because the device was idle.
 Present only on messages of special type
 com.google.android.gcm.GCMConstants.VALUE_DELETED_MESSAGES
Extra used on
 com.google.android.gcm.GCMConstants.INTENT_FROM_GCM_REGISTRATION_CALLBACK
 to indicate that the application has been unregistered.
Intent used by the GCM library to indicate that the registration call should be retried.
Intent sent by GCM containing a message.
Intent sent by GCM indicating with the result of a registration request.
Intent sent to GCM to register the application.
Intent sent to GCM to unregister the application.
Permission necessary to receive GCM intents.
Special message indicating the server deleted the pending messages.
