IntentService responsible for handling GCM messages. More...
Public Member Functions | |
void | onError (Context context, String errorId) |
Called on registration or unregistration error. More... | |
![]() | |
final void | onHandleIntent (Intent intent) |
Protected Member Functions | |
void | onRegistered (Context context, String registrationId) throws NoStorageException |
Called after a device has been registered. More... | |
void | onUnregistered (Context context, String registrationId) throws NoStorageException |
Called after a device has been unregistered. More... | |
void | onMessage (Context arg0, Intent intent) |
Called when a cloud message has been received. More... | |
void | onDeletedMessages (Context context, int total) |
boolean | onRecoverableError (Context context, String errorId) |
![]() | |
GCMBaseIntentService () | |
Constructor that does not set a sender id, useful when the sender id is context-specific. More... | |
GCMBaseIntentService (String...senderIds) | |
Constructor used when the sender id(s) is fixed. | |
String[] | getSenderIds (Context context) |
Gets the sender ids. More... | |
void | onDeletedMessages (Context context, int total) |
Called when the GCM server tells pending messages have been deleted because the device was idle. More... | |
boolean | onRecoverableError (Context context, String errorId) |
Called on a registration error that could be retried. More... | |
Additional Inherited Members | |
![]() | |
static final String | TAG = "GCMBaseIntentService" |
IntentService responsible for handling GCM messages.
|
virtual |
Called on registration or unregistration error.
context | application's context. |
errorId | error id returned by the GCM service. |
Implements unicopa.copa.app.gcm.GCMBaseIntentService.
|
protectedvirtual |
Called when a cloud message has been received.
context | application's context. |
intent | intent containing the message payload as extras. |
Implements unicopa.copa.app.gcm.GCMBaseIntentService.
|
protectedvirtual |
Called after a device has been registered.
context | application's context. |
registrationId | the registration id returned by the GCM service. |
NoStorageException |
Implements unicopa.copa.app.gcm.GCMBaseIntentService.
|
protectedvirtual |
Called after a device has been unregistered.
registrationId | the registration id that was previously registered. |
context | application's context. |
NoStorageException |
Implements unicopa.copa.app.gcm.GCMBaseIntentService.