public final class Constants
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ERROR_DEVICE_QUOTA_EXCEEDED
Too many messages sent by the sender to a specific device.
|
static java.lang.String |
ERROR_INTERNAL_SERVER_ERROR
A particular message could not be sent because the GCM servers encountered
an error.
|
static java.lang.String |
ERROR_INVALID_REGISTRATION
Bad registration_id.
|
static java.lang.String |
ERROR_INVALID_TTL
Time to Live value passed is less than zero or more than maximum.
|
static java.lang.String |
ERROR_MESSAGE_TOO_BIG
The payload of the message is too big, see the limitations.
|
static java.lang.String |
ERROR_MISMATCH_SENDER_ID
The sender_id contained in the registration_id does not match the
sender_id used to register with the GCM servers.
|
static java.lang.String |
ERROR_MISSING_COLLAPSE_KEY
Collapse key is required.
|
static java.lang.String |
ERROR_MISSING_REGISTRATION
Missing registration_id.
|
static java.lang.String |
ERROR_NOT_REGISTERED
The user has uninstalled the application or turned off notifications.
|
static java.lang.String |
ERROR_QUOTA_EXCEEDED
Too many messages sent by the sender.
|
static java.lang.String |
ERROR_UNAVAILABLE
A particular message could not be sent because the GCM servers were not
available.
|
static java.lang.String |
GCM_SEND_ENDPOINT
Endpoint for sending messages.
|
static java.lang.String |
JSON_CANONICAL_IDS
JSON-only field representing the number of messages with a canonical
registration id.
|
static java.lang.String |
JSON_ERROR
JSON-only field representing the error field of an individual request.
|
static java.lang.String |
JSON_FAILURE
JSON-only field representing the number of failed messages.
|
static java.lang.String |
JSON_MESSAGE_ID
JSON-only field sent by GCM when a message was successfully sent.
|
static java.lang.String |
JSON_MULTICAST_ID
JSON-only field representing the id of the multicast request.
|
static java.lang.String |
JSON_NOTIFICATION
JSON-only field representing the notification payload.
|
static java.lang.String |
JSON_NOTIFICATION_BADGE
JSON-only field representing the notification badge.
|
static java.lang.String |
JSON_NOTIFICATION_BODY
JSON-only field representing the notification body.
|
static java.lang.String |
JSON_NOTIFICATION_BODY_LOC_ARGS
JSON-only field representing the notification body localization values.
|
static java.lang.String |
JSON_NOTIFICATION_BODY_LOC_KEY
JSON-only field representing the notification body localization key.
|
static java.lang.String |
JSON_NOTIFICATION_CLICK_ACTION
JSON-only field representing the notification click action.
|
static java.lang.String |
JSON_NOTIFICATION_COLOR
JSON-only field representing the notification color.
|
static java.lang.String |
JSON_NOTIFICATION_ICON
JSON-only field representing the notification icon.
|
static java.lang.String |
JSON_NOTIFICATION_SOUND
JSON-only field representing the notification sound.
|
static java.lang.String |
JSON_NOTIFICATION_TAG
JSON-only field representing the notification tag.
|
static java.lang.String |
JSON_NOTIFICATION_TITLE
JSON-only field representing the notification title.
|
static java.lang.String |
JSON_NOTIFICATION_TITLE_LOC_ARGS
JSON-only field representing the notification title localization values.
|
static java.lang.String |
JSON_NOTIFICATION_TITLE_LOC_KEY
JSON-only field representing the notification title localization key.
|
static java.lang.String |
JSON_PAYLOAD
JSON-only field representing the payload data.
|
static java.lang.String |
JSON_REGISTRATION_IDS
JSON-only field representing the registration ids.
|
static java.lang.String |
JSON_RESULTS
JSON-only field representing the result of each individual request.
|
static java.lang.String |
JSON_SUCCESS
JSON-only field representing the number of successful messages.
|
static java.lang.String |
JSON_TO
JSON-only field representing the to recipient.
|
static java.lang.String |
MESSAGE_PRIORITY_HIGH
Value used to set message priority to high.
|
static java.lang.String |
MESSAGE_PRIORITY_NORMAL
Value used to set message priority to normal.
|
static java.lang.String |
PARAM_COLLAPSE_KEY
HTTP parameter for collapse key.
|
static java.lang.String |
PARAM_DELAY_WHILE_IDLE
HTTP parameter for delaying the message delivery if the device is idle.
|
static java.lang.String |
PARAM_DRY_RUN
HTTP parameter for telling gcm to validate the message without actually sending it.
|
static java.lang.String |
PARAM_PAYLOAD_PREFIX
Prefix to HTTP parameter used to pass key-values in the message payload.
|
static java.lang.String |
PARAM_PRIORITY
Parameter used to set the message priority.
|
static java.lang.String |
PARAM_REGISTRATION_ID
HTTP parameter for registration id.
|
static java.lang.String |
PARAM_RESTRICTED_PACKAGE_NAME
HTTP parameter for package name that can be used to restrict message delivery by matching
against the package name used to generate the registration id.
|
static java.lang.String |
PARAM_TIME_TO_LIVE
Parameter used to set the message time-to-live.
|
static java.lang.String |
PARAM_TO
Parameter for to field.
|
static java.lang.String |
TOKEN_CANONICAL_REG_ID
Token returned by GCM when the requested registration id has a canonical
value.
|
static java.lang.String |
TOKEN_ERROR
Token returned by GCM when there was an error sending a message.
|
static java.lang.String |
TOKEN_MESSAGE_ID
Token returned by GCM when a message was successfully sent.
|
static java.lang.String |
TOPIC_PREFIX
Prefix of the topic.
|
public static final java.lang.String GCM_SEND_ENDPOINT
public static final java.lang.String PARAM_TO
public static final java.lang.String TOPIC_PREFIX
public static final java.lang.String PARAM_REGISTRATION_ID
public static final java.lang.String PARAM_COLLAPSE_KEY
public static final java.lang.String PARAM_DELAY_WHILE_IDLE
public static final java.lang.String PARAM_DRY_RUN
public static final java.lang.String PARAM_RESTRICTED_PACKAGE_NAME
public static final java.lang.String PARAM_PAYLOAD_PREFIX
public static final java.lang.String PARAM_TIME_TO_LIVE
public static final java.lang.String PARAM_PRIORITY
public static final java.lang.String MESSAGE_PRIORITY_NORMAL
public static final java.lang.String MESSAGE_PRIORITY_HIGH
public static final java.lang.String ERROR_QUOTA_EXCEEDED
public static final java.lang.String ERROR_DEVICE_QUOTA_EXCEEDED
public static final java.lang.String ERROR_MISSING_REGISTRATION
public static final java.lang.String ERROR_INVALID_REGISTRATION
public static final java.lang.String ERROR_MISMATCH_SENDER_ID
public static final java.lang.String ERROR_NOT_REGISTERED
public static final java.lang.String ERROR_MESSAGE_TOO_BIG
public static final java.lang.String ERROR_MISSING_COLLAPSE_KEY
public static final java.lang.String ERROR_UNAVAILABLE
public static final java.lang.String ERROR_INTERNAL_SERVER_ERROR
public static final java.lang.String ERROR_INVALID_TTL
public static final java.lang.String TOKEN_MESSAGE_ID
public static final java.lang.String TOKEN_CANONICAL_REG_ID
public static final java.lang.String TOKEN_ERROR
public static final java.lang.String JSON_REGISTRATION_IDS
public static final java.lang.String JSON_TO
public static final java.lang.String JSON_PAYLOAD
public static final java.lang.String JSON_NOTIFICATION
public static final java.lang.String JSON_NOTIFICATION_TITLE
public static final java.lang.String JSON_NOTIFICATION_BODY
public static final java.lang.String JSON_NOTIFICATION_ICON
public static final java.lang.String JSON_NOTIFICATION_SOUND
public static final java.lang.String JSON_NOTIFICATION_BADGE
public static final java.lang.String JSON_NOTIFICATION_TAG
public static final java.lang.String JSON_NOTIFICATION_COLOR
public static final java.lang.String JSON_NOTIFICATION_CLICK_ACTION
public static final java.lang.String JSON_NOTIFICATION_BODY_LOC_KEY
public static final java.lang.String JSON_NOTIFICATION_BODY_LOC_ARGS
public static final java.lang.String JSON_NOTIFICATION_TITLE_LOC_KEY
public static final java.lang.String JSON_NOTIFICATION_TITLE_LOC_ARGS
public static final java.lang.String JSON_SUCCESS
public static final java.lang.String JSON_FAILURE
public static final java.lang.String JSON_CANONICAL_IDS
public static final java.lang.String JSON_MULTICAST_ID
public static final java.lang.String JSON_RESULTS
public static final java.lang.String JSON_ERROR
public static final java.lang.String JSON_MESSAGE_ID