com.google.android.gcm
Class GCMConstants

java.lang.Object
  extended by com.google.android.gcm.GCMConstants

public final class GCMConstants
extends java.lang.Object

Constants used by the GCM library.


Field Summary
static java.lang.String DEFAULT_INTENT_SERVICE_CLASS_NAME
           
static java.lang.String ERROR_ACCOUNT_MISSING
          There is no Google account on the phone.
static java.lang.String ERROR_AUTHENTICATION_FAILED
          Bad password.
static java.lang.String ERROR_INVALID_PARAMETERS
          The request sent by the phone does not contain the expected parameters.
static java.lang.String ERROR_INVALID_SENDER
          The sender account is not recognized.
static java.lang.String ERROR_PHONE_REGISTRATION_ERROR
          Incorrect phone registration with Google.
static java.lang.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.
static java.lang.String EXTRA_APPLICATION_PENDING_INTENT
          Extra used on INTENT_TO_GCM_REGISTRATION to get the application id.
static java.lang.String EXTRA_ERROR
          Extra used on INTENT_FROM_GCM_REGISTRATION_CALLBACK to indicate an error when the registration fails.
static java.lang.String EXTRA_REGISTRATION_ID
          Extra used on INTENT_FROM_GCM_REGISTRATION_CALLBACK to indicate the registration id when the registration succeeds.
static java.lang.String EXTRA_SENDER
          Extra used on INTENT_TO_GCM_REGISTRATION to indicate the sender account (a Google email) that owns the application.
static java.lang.String EXTRA_SPECIAL_MESSAGE
          Type of message present in the INTENT_FROM_GCM_MESSAGE intent.
static java.lang.String EXTRA_TOTAL_DELETED
          Number of messages deleted by the server because the device was idle.
static java.lang.String EXTRA_UNREGISTERED
          Extra used on INTENT_FROM_GCM_REGISTRATION_CALLBACK to indicate that the application has been unregistered.
static java.lang.String INTENT_FROM_GCM_LIBRARY_RETRY
          Intent used by the GCM library to indicate that the registration call should be retried.
static java.lang.String INTENT_FROM_GCM_MESSAGE
          Intent sent by GCM containing a message.
static java.lang.String INTENT_FROM_GCM_REGISTRATION_CALLBACK
          Intent sent by GCM indicating with the result of a registration request.
static java.lang.String INTENT_TO_GCM_REGISTRATION
          Intent sent to GCM to register the application.
static java.lang.String INTENT_TO_GCM_UNREGISTRATION
          Intent sent to GCM to unregister the application.
static java.lang.String PERMISSION_GCM_INTENTS
          Permission necessary to receive GCM intents.
static java.lang.String VALUE_DELETED_MESSAGES
          Special message indicating the server deleted the pending messages.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTENT_TO_GCM_REGISTRATION

public static final java.lang.String INTENT_TO_GCM_REGISTRATION
Intent sent to GCM to register the application.

See Also:
Constant Field Values

INTENT_TO_GCM_UNREGISTRATION

public static final java.lang.String INTENT_TO_GCM_UNREGISTRATION
Intent sent to GCM to unregister the application.

See Also:
Constant Field Values

INTENT_FROM_GCM_REGISTRATION_CALLBACK

public static final java.lang.String INTENT_FROM_GCM_REGISTRATION_CALLBACK
Intent sent by GCM indicating with the result of a registration request.

See Also:
Constant Field Values

INTENT_FROM_GCM_LIBRARY_RETRY

public static final java.lang.String INTENT_FROM_GCM_LIBRARY_RETRY
Intent used by the GCM library to indicate that the registration call should be retried.

See Also:
Constant Field Values

INTENT_FROM_GCM_MESSAGE

public static final java.lang.String INTENT_FROM_GCM_MESSAGE
Intent sent by GCM containing a message.

See Also:
Constant Field Values

EXTRA_SENDER

public static final java.lang.String EXTRA_SENDER
Extra used on INTENT_TO_GCM_REGISTRATION to indicate the sender account (a Google email) that owns the application.

See Also:
Constant Field Values

EXTRA_APPLICATION_PENDING_INTENT

public static final java.lang.String EXTRA_APPLICATION_PENDING_INTENT
Extra used on INTENT_TO_GCM_REGISTRATION to get the application id.

See Also:
Constant Field Values

EXTRA_UNREGISTERED

public static final java.lang.String EXTRA_UNREGISTERED
Extra used on INTENT_FROM_GCM_REGISTRATION_CALLBACK to indicate that the application has been unregistered.

See Also:
Constant Field Values

EXTRA_ERROR

public static final java.lang.String EXTRA_ERROR
Extra used on INTENT_FROM_GCM_REGISTRATION_CALLBACK to indicate an error when the registration fails. See constants starting with ERROR_ for possible values.

See Also:
Constant Field Values

EXTRA_REGISTRATION_ID

public static final java.lang.String EXTRA_REGISTRATION_ID
Extra used on INTENT_FROM_GCM_REGISTRATION_CALLBACK to indicate the registration id when the registration succeeds.

See Also:
Constant Field Values

EXTRA_SPECIAL_MESSAGE

public static final java.lang.String EXTRA_SPECIAL_MESSAGE
Type of message present in the INTENT_FROM_GCM_MESSAGE intent. This extra is only set for special messages sent from GCM, not for messages originated from the application.

See Also:
Constant Field Values

VALUE_DELETED_MESSAGES

public static final java.lang.String VALUE_DELETED_MESSAGES
Special message indicating the server deleted the pending messages.

See Also:
Constant Field Values

EXTRA_TOTAL_DELETED

public static final java.lang.String EXTRA_TOTAL_DELETED
Number of messages deleted by the server because the device was idle. Present only on messages of special type VALUE_DELETED_MESSAGES

See Also:
Constant Field Values

PERMISSION_GCM_INTENTS

public static final java.lang.String PERMISSION_GCM_INTENTS
Permission necessary to receive GCM intents.

See Also:
Constant Field Values

DEFAULT_INTENT_SERVICE_CLASS_NAME

public static final java.lang.String DEFAULT_INTENT_SERVICE_CLASS_NAME
See Also:
GCMBroadcastReceiver, Constant Field Values

ERROR_SERVICE_NOT_AVAILABLE

public static final java.lang.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. The application should use exponential back off and retry.

See Also:
Constant Field Values

ERROR_ACCOUNT_MISSING

public static final java.lang.String ERROR_ACCOUNT_MISSING
There is no Google account on the phone. The application should ask the user to open the account manager and add a Google account.

See Also:
Constant Field Values

ERROR_AUTHENTICATION_FAILED

public static final java.lang.String ERROR_AUTHENTICATION_FAILED
Bad password. The application should ask the user to enter his/her password, and let user retry manually later. Fix on the device side.

See Also:
Constant Field Values

ERROR_INVALID_PARAMETERS

public static final java.lang.String ERROR_INVALID_PARAMETERS
The request sent by the phone does not contain the expected parameters. This phone doesn't currently support GCM.

See Also:
Constant Field Values

ERROR_INVALID_SENDER

public static final java.lang.String ERROR_INVALID_SENDER
The sender account is not recognized. Fix on the device side.

See Also:
Constant Field Values

ERROR_PHONE_REGISTRATION_ERROR

public static final java.lang.String ERROR_PHONE_REGISTRATION_ERROR
Incorrect phone registration with Google. This phone doesn't currently support GCM.

See Also:
Constant Field Values