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 TypeMethodDescriptionvoidregistered(PushSubscription subscription) Stores or replaces a subscription on the application-owned server.voidunregistered(PushSubscription subscription) Removes a subscription after the transport unregisters.
-
Method Details
-
registered
Stores or replaces a subscription on the application-owned server.- Parameters:
subscription- the current native subscription
-
unregistered
Removes a subscription after the transport unregisters.- Parameters:
subscription- the subscription that was active before removal
-