-
-
Field Summary
Fields Modifier and Type Field Description protected ActivationContextactivationContext
-
Method Summary
Modifier and Type Method Description ActivationContextgetActivationContext()voidactivate()Activates the device for push notifications with FCM or APNS, obtaining a unique identifier from them.Subsequently registers the device with Ably and stores the deviceIdentityToken in local storage. voidactivate(boolean useCustomRegistrar)Activates the device for push notifications with FCM or APNS, obtaining a unique identifier from them.Subsequently registers the device with Ably and stores the deviceIdentityToken in local storage. voiddeactivate()Deactivates the device from receiving push notifications with Ably and FCM or APNS. voiddeactivate(boolean useCustomRegistrar)Deactivates the device from receiving push notifications with Ably and FCM or APNS. voidtryRequestRegistrationToken()LocalDevicegetLocalDevice()Retrieves a LocalDevice object that represents the current state of the device as a target for push notifications. -
-
Constructor Detail
-
Push
Push(AblyBase rest)
-
-
Method Detail
-
getActivationContext
ActivationContext getActivationContext()
-
activate
void activate()
Activates the device for push notifications with FCM or APNS, obtaining a unique identifier from them.Subsequently registers the device with Ably and stores the deviceIdentityToken in local storage.
Spec: RSH2a
-
activate
void activate(boolean useCustomRegistrar)
Activates the device for push notifications with FCM or APNS, obtaining a unique identifier from them.Subsequently registers the device with Ably and stores the deviceIdentityToken in local storage.
Spec: RSH2a
-
deactivate
void deactivate()
Deactivates the device from receiving push notifications with Ably and FCM or APNS.
Spec: RSH2b
-
deactivate
void deactivate(boolean useCustomRegistrar)
Deactivates the device from receiving push notifications with Ably and FCM or APNS.
Spec: RSH2b
-
tryRequestRegistrationToken
void tryRequestRegistrationToken()
-
getLocalDevice
LocalDevice getLocalDevice()
Retrieves a LocalDevice object that represents the current state of the device as a target for push notifications.
Spec: RSH8
-
-
-
-