Constants used by the GCM library. More...
Static Public Attributes | |
static final String | INTENT_TO_GCM_REGISTRATION |
Intent sent to GCM to register the application. More... | |
static final String | INTENT_TO_GCM_UNREGISTRATION |
Intent sent to GCM to unregister the application. More... | |
static final String | INTENT_FROM_GCM_REGISTRATION_CALLBACK |
Intent sent by GCM indicating with the result of a registration request. More... | |
static final String | INTENT_FROM_GCM_LIBRARY_RETRY |
Intent used by the GCM library to indicate that the registration call should be retried. More... | |
static final String | INTENT_FROM_GCM_MESSAGE |
Intent sent by GCM containing a message. More... | |
static final String | EXTRA_SENDER = "sender" |
Extra used on INTENT_TO_GCM_REGISTRATION to indicate the sender account (a Google email) that owns the application. | |
static final String | EXTRA_APPLICATION_PENDING_INTENT = "app" |
Extra used on INTENT_TO_GCM_REGISTRATION to get the application id. | |
static final String | EXTRA_UNREGISTERED = "unregistered" |
Extra used on INTENT_FROM_GCM_REGISTRATION_CALLBACK to indicate that the application has been unregistered. | |
static final String | EXTRA_ERROR = "error" |
Extra used on INTENT_FROM_GCM_REGISTRATION_CALLBACK to indicate an error when the registration fails. More... | |
static final String | EXTRA_REGISTRATION_ID = "registration_id" |
Extra used on INTENT_FROM_GCM_REGISTRATION_CALLBACK to indicate the registration id when the registration succeeds. | |
static final String | EXTRA_SPECIAL_MESSAGE = "message_type" |
Type of message present in the INTENT_FROM_GCM_MESSAGE intent. More... | |
static final String | VALUE_DELETED_MESSAGES = "deleted_messages" |
Special message indicating the server deleted the pending messages. | |
static final String | EXTRA_TOTAL_DELETED = "total_deleted" |
Number of messages deleted by the server because the device was idle. More... | |
static final String | PERMISSION_GCM_INTENTS |
Permission necessary to receive GCM intents. More... | |
static final String | DEFAULT_INTENT_SERVICE_CLASS_NAME |
static final 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. More... | |
static final String | ERROR_ACCOUNT_MISSING |
There is no Google account on the phone. More... | |
static final String | ERROR_AUTHENTICATION_FAILED |
Bad password. More... | |
static final String | ERROR_INVALID_PARAMETERS |
The request sent by the phone does not contain the expected parameters. More... | |
static final String | ERROR_INVALID_SENDER |
The sender account is not recognized. More... | |
static final String | ERROR_PHONE_REGISTRATION_ERROR |
Incorrect phone registration with Google. More... | |
Constants used by the GCM library.
|
static |
|
static |
There is no Google account on the phone.
The application should ask the user to open the account manager and add a Google account.
|
static |
Bad password.
The application should ask the user to enter his/her password, and let user retry manually later. Fix on the device side.
|
static |
The request sent by the phone does not contain the expected parameters.
This phone doesn't currently support GCM.
|
static |
The sender account is not recognized.
Fix on the device side.
|
static |
Incorrect phone registration with Google.
This phone doesn't currently support GCM.
|
static |
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.
|
static |
Extra used on INTENT_FROM_GCM_REGISTRATION_CALLBACK to indicate an error when the registration fails.
See constants starting with ERROR_ for possible values.
|
static |
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.
|
static |
Number of messages deleted by the server because the device was idle.
Present only on messages of special type VALUE_DELETED_MESSAGES
|
static |
Intent used by the GCM library to indicate that the registration call should be retried.
|
static |
Intent sent by GCM containing a message.
|
static |
Intent sent by GCM indicating with the result of a registration request.
|
static |
Intent sent to GCM to register the application.
|
static |
Intent sent to GCM to unregister the application.
|
static |
Permission necessary to receive GCM intents.