public interface PushCallback
Modifier and Type | Field and Description |
---|---|
static int |
REGISTRATION_ACCOUNT_MISSING
Error code returned when sending a push notification
|
static int |
REGISTRATION_AUTHENTICATION_FAILED
Error code returned when sending a push notification
|
static int |
REGISTRATION_ERROR_SERVICE_NOT_AVAILABLE
Error code returned when sending a push notification
|
static int |
REGISTRATION_INVALID_SENDER
Error code returned when sending a push notification
|
static int |
REGISTRATION_PHONE_REGISTRATION_ERROR
Error code returned when sending a push notification
|
static int |
REGISTRATION_TOO_MANY_REGISTRATIONS
Error code returned when sending a push notification
|
Modifier and Type | Method and Description |
---|---|
void |
push(String value)
Invoked when the push notification occurs
|
void |
pushRegistrationError(String error,
int errorCode)
Invoked to indicate an error occurred during registration for push notification
|
void |
registeredForPush(String deviceId)
Invoked when push registration is complete to pass the device ID to the application.
|
static final int REGISTRATION_ERROR_SERVICE_NOT_AVAILABLE
static final int REGISTRATION_ACCOUNT_MISSING
static final int REGISTRATION_AUTHENTICATION_FAILED
static final int REGISTRATION_TOO_MANY_REGISTRATIONS
static final int REGISTRATION_INVALID_SENDER
static final int REGISTRATION_PHONE_REGISTRATION_ERROR
void push(String value)
value
- the value of the push notificationvoid registeredForPush(String deviceId)
deviceId
- OS native push id you should not use this value and instead use Push.getPushKey()
Push.getPushKey()
void pushRegistrationError(String error, int errorCode)
error
- descriptive error stringerrorCode
- an error code