Wait for confirmed registration; defaults to 15 seconds
login(externalUserId, callback)
Associate this installation with a user and report the API result
logout(callback)
Remove its current user association and report the API result
subscriptionState()
Read installation, identity, permission, token, and registration state
addRegistrationListener
Observe confirmed registration and failures
removeRegistrationListener
Stop observing registration changes
addNotificationClickListener
Observe notification opens
addForegroundNotificationListener
Observe a push received while foregrounded
handleNotificationOpen(intent)
Process an open intent in custom integrations
PushctlOperationCallback receives null on success or a Throwable on failure. Login and logout require a confirmed installation and update local identity only after the API accepts the change.
PushctlSubscriptionState contains installationId, externalUserId, permission, pushToken, registrationStatus, and registrationError. Its computed isRegistered property is true only when registrationStatus is REGISTERED.Registration status can be UNREGISTERED, REGISTERING, REGISTERED, or FAILED. Implement PushctlRegistrationListener to receive onRegistered(state) and onRegistrationFailed(error) callbacks.
Show Notification model
PushctlNotification contains notificationId, deliveryId, optional title, body, imageUrl, and actionUrl, plus data: Map<String, String>.