Interface PushRegistrationSink


public interface PushRegistrationSink

Mirrors native subscription changes to an application-owned server.

This interface is optional with managed BuildCloud push. It is mandatory when a PushTransport is supplied, because custom transport mode never sends registration data to BuildCloud. Implementations should upsert by installation ID and replace rotated tokens.

Callbacks run on the Codename One EDT. Network work should be queued asynchronously rather than blocking the callback.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Stores or replaces a subscription on the application-owned server.
    void
    Removes a subscription after the transport unregisters.
  • Method Details

    • registered

      void registered(PushSubscription subscription)
      Stores or replaces a subscription on the application-owned server.
      Parameters:
      subscription - the current native subscription
    • unregistered

      void unregistered(PushSubscription subscription)
      Removes a subscription after the transport unregisters.
      Parameters:
      subscription - the subscription that was active before removal