Package 

Class Push


  • 
    public class Push
    extends PushBase
                        

    Enables a device to be registered and deregistered from receiving push notifications.

    • Constructor Summary

      Constructors 
      Constructor Description
      Push(AblyBase rest)
    • Method Summary

      Modifier and Type Method Description
      ActivationContext getActivationContext()
      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.
      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.
      void deactivate() Deactivates the device from receiving push notifications with Ably and FCM or APNS.
      void deactivate(boolean useCustomRegistrar) Deactivates the device from receiving push notifications with Ably and FCM or APNS.
      void tryRequestRegistrationToken()
      LocalDevice getLocalDevice() Retrieves a LocalDevice object that represents the current state of the device as a target for push notifications.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • 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