CopaApp
Change of Plan Application
 All Classes Functions Variables Pages
Static Public Attributes | List of all members
unicopa.copa.app.gcm.GCMConstants Class Reference

Constants used by the GCM library. More...

Collaboration diagram for unicopa.copa.app.gcm.GCMConstants:
Collaboration graph

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...
 

Detailed Description

Constants used by the GCM library.

Member Data Documentation

final String unicopa.copa.app.gcm.GCMConstants.DEFAULT_INTENT_SERVICE_CLASS_NAME
static
Initial value:
=
".GCMIntentService"
See Also
GCMBroadcastReceiver
final String unicopa.copa.app.gcm.GCMConstants.ERROR_ACCOUNT_MISSING
static
Initial value:
=
"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.

final String unicopa.copa.app.gcm.GCMConstants.ERROR_AUTHENTICATION_FAILED
static
Initial value:
=
"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.

final String unicopa.copa.app.gcm.GCMConstants.ERROR_INVALID_PARAMETERS
static
Initial value:
=
"INVALID_PARAMETERS"

The request sent by the phone does not contain the expected parameters.

This phone doesn't currently support GCM.

final String unicopa.copa.app.gcm.GCMConstants.ERROR_INVALID_SENDER
static
Initial value:
=
"INVALID_SENDER"

The sender account is not recognized.

Fix on the device side.

final String unicopa.copa.app.gcm.GCMConstants.ERROR_PHONE_REGISTRATION_ERROR
static
Initial value:
=
"PHONE_REGISTRATION_ERROR"

Incorrect phone registration with Google.

This phone doesn't currently support GCM.

final String unicopa.copa.app.gcm.GCMConstants.ERROR_SERVICE_NOT_AVAILABLE
static
Initial value:
=
"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.

final String unicopa.copa.app.gcm.GCMConstants.EXTRA_ERROR = "error"
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.

final String unicopa.copa.app.gcm.GCMConstants.EXTRA_SPECIAL_MESSAGE = "message_type"
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.

final String unicopa.copa.app.gcm.GCMConstants.EXTRA_TOTAL_DELETED = "total_deleted"
static

Number of messages deleted by the server because the device was idle.

Present only on messages of special type VALUE_DELETED_MESSAGES

final String unicopa.copa.app.gcm.GCMConstants.INTENT_FROM_GCM_LIBRARY_RETRY
static
Initial value:
=
"com.google.android.gcm.intent.RETRY"

Intent used by the GCM library to indicate that the registration call should be retried.

final String unicopa.copa.app.gcm.GCMConstants.INTENT_FROM_GCM_MESSAGE
static
Initial value:
=
"com.google.android.c2dm.intent.RECEIVE"

Intent sent by GCM containing a message.

final String unicopa.copa.app.gcm.GCMConstants.INTENT_FROM_GCM_REGISTRATION_CALLBACK
static
Initial value:
=
"com.google.android.c2dm.intent.REGISTRATION"

Intent sent by GCM indicating with the result of a registration request.

final String unicopa.copa.app.gcm.GCMConstants.INTENT_TO_GCM_REGISTRATION
static
Initial value:
=
"com.google.android.c2dm.intent.REGISTER"

Intent sent to GCM to register the application.

final String unicopa.copa.app.gcm.GCMConstants.INTENT_TO_GCM_UNREGISTRATION
static
Initial value:
=
"com.google.android.c2dm.intent.UNREGISTER"

Intent sent to GCM to unregister the application.

final String unicopa.copa.app.gcm.GCMConstants.PERMISSION_GCM_INTENTS
static
Initial value:
=
"com.google.android.c2dm.permission.SEND"

Permission necessary to receive GCM intents.


The documentation for this class was generated from the following file: