public final class Constants extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ERROR_DEVICE_QUOTA_EXCEEDED
Too many messages sent by the sender to a specific device.
|
static String |
ERROR_INTERNAL_SERVER_ERROR
A particular message could not be sent because the GCM servers encountered
an error.
|
static String |
ERROR_INVALID_REGISTRATION
Bad registration_id.
|
static String |
ERROR_INVALID_TTL
Time to Live value passed is less than zero or more than maximum.
|
static String |
ERROR_MESSAGE_TOO_BIG
The payload of the message is too big, see the limitations.
|
static 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 String |
ERROR_MISSING_COLLAPSE_KEY
Collapse key is required.
|
static String |
ERROR_MISSING_REGISTRATION
Missing registration_id.
|
static String |
ERROR_NOT_REGISTERED
The user has uninstalled the application or turned off notifications.
|
static String |
ERROR_QUOTA_EXCEEDED
Too many messages sent by the sender.
|
static String |
ERROR_UNAVAILABLE
A particular message could not be sent because the GCM servers were not
available.
|
static String |
GCM_SEND_ENDPOINT
Endpoint for sending messages.
|
static String |
JSON_CANONICAL_IDS
JSON-only field representing the number of messages with a canonical
registration id.
|
static String |
JSON_ERROR
JSON-only field representing the error field of an individual request.
|
static String |
JSON_FAILURE
JSON-only field representing the number of failed messages.
|
static String |
JSON_MESSAGE_ID
JSON-only field sent by GCM when a message was successfully sent.
|
static String |
JSON_MULTICAST_ID
JSON-only field representing the id of the multicast request.
|
static String |
JSON_PAYLOAD
JSON-only field representing the payload data.
|
static String |
JSON_REGISTRATION_IDS
JSON-only field representing the registration ids.
|
static String |
JSON_RESULTS
JSON-only field representing the result of each individual request.
|
static String |
JSON_SUCCESS
JSON-only field representing the number of successful messages.
|
static String |
PARAM_COLLAPSE_KEY
HTTP parameter for collapse key.
|
static String |
PARAM_DELAY_WHILE_IDLE
HTTP parameter for delaying the message delivery if the device is idle.
|
static String |
PARAM_PAYLOAD_PREFIX
Prefix to HTTP parameter used to pass key-values in the message payload.
|
static String |
PARAM_REGISTRATION_ID
HTTP parameter for registration id.
|
static String |
PARAM_TIME_TO_LIVE
Prefix to HTTP parameter used to set the message time-to-live.
|
static String |
TOKEN_CANONICAL_REG_ID
Token returned by GCM when the requested registration id has a canonical
value.
|
static String |
TOKEN_ERROR
Token returned by GCM when there was an error sending a message.
|
static String |
TOKEN_MESSAGE_ID
Token returned by GCM when a message was successfully sent.
|
public static final String GCM_SEND_ENDPOINT
public static final String PARAM_REGISTRATION_ID
public static final String PARAM_COLLAPSE_KEY
public static final String PARAM_DELAY_WHILE_IDLE
public static final String PARAM_PAYLOAD_PREFIX
public static final String PARAM_TIME_TO_LIVE
public static final String ERROR_QUOTA_EXCEEDED
public static final String ERROR_DEVICE_QUOTA_EXCEEDED
public static final String ERROR_MISSING_REGISTRATION
public static final String ERROR_INVALID_REGISTRATION
public static final String ERROR_MISMATCH_SENDER_ID
public static final String ERROR_NOT_REGISTERED
public static final String ERROR_MESSAGE_TOO_BIG
public static final String ERROR_MISSING_COLLAPSE_KEY
public static final String ERROR_UNAVAILABLE
public static final String ERROR_INTERNAL_SERVER_ERROR
public static final String ERROR_INVALID_TTL
public static final String TOKEN_MESSAGE_ID
public static final String TOKEN_CANONICAL_REG_ID
public static final String TOKEN_ERROR
public static final String JSON_REGISTRATION_IDS
public static final String JSON_PAYLOAD
public static final String JSON_SUCCESS
public static final String JSON_FAILURE
public static final String JSON_CANONICAL_IDS
public static final String JSON_MULTICAST_ID
public static final String JSON_RESULTS
public static final String JSON_ERROR
public static final String JSON_MESSAGE_ID
Copyright © 2014. All Rights Reserved.