com.netmera.mobile.util
Class GCMConstants

java.lang.Object
  extended by com.netmera.mobile.util.GCMConstants

public final class GCMConstants
extends java.lang.Object

Constants used by the GCM library.


Field Summary
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_TOKEN
           
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
equals, 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_TOKEN

public static final java.lang.String EXTRA_TOKEN
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

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