Interface PushCallback
public interface PushCallback
This callback interface is invoked when a push notification is received
by the application. If the main class of the application implements
push callback it will receive push notification calls from the system.
Notice that its very possible that a separate instance of the main class
will be created to perform the push!
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intError code returned when sending a push notificationstatic final intError code returned when sending a push notificationstatic final intError code returned when sending a push notificationstatic final intError code returned when sending a push notificationstatic final intError code returned when sending a push notificationstatic final intError code returned when sending a push notification -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked when the push notification occursvoidpushRegistrationError(String error, int errorCode) Invoked to indicate an error occurred during registration for push notificationvoidregisteredForPush(String deviceId) Invoked when push registration is complete to pass the device ID to the application.
-
Field Details
-
REGISTRATION_ERROR_SERVICE_NOT_AVAILABLE
static final int REGISTRATION_ERROR_SERVICE_NOT_AVAILABLEError code returned when sending a push notification- See Also:
-
REGISTRATION_ACCOUNT_MISSING
static final int REGISTRATION_ACCOUNT_MISSINGError code returned when sending a push notification- See Also:
-
REGISTRATION_AUTHENTICATION_FAILED
static final int REGISTRATION_AUTHENTICATION_FAILEDError code returned when sending a push notification- See Also:
-
REGISTRATION_TOO_MANY_REGISTRATIONS
static final int REGISTRATION_TOO_MANY_REGISTRATIONSError code returned when sending a push notification- See Also:
-
REGISTRATION_INVALID_SENDER
static final int REGISTRATION_INVALID_SENDERError code returned when sending a push notification- See Also:
-
REGISTRATION_PHONE_REGISTRATION_ERROR
static final int REGISTRATION_PHONE_REGISTRATION_ERRORError code returned when sending a push notification- See Also:
-
-
Method Details
-
push
Invoked when the push notification occurs
Parameters
value: the value of the push notification
-
registeredForPush
Invoked when push registration is complete to pass the device ID to the application.
Parameters
deviceId: OS native push id you should not use this value and instead usePush.getPushKey()
See also
- Push#getPushKey()
-
pushRegistrationError
Invoked to indicate an error occurred during registration for push notification
Parameters
-
error: descriptive error string -
errorCode: an error code
-
-