Methods
initialize() starts native registration but does not wait for it. waitForRegistration() rejects on APNs or Firebase failure, Pushctl API failure, or timeout. login() and logout() reject when the installation is not registered or the API update fails.
Initialize options
Events
subscriptionRegistered
subscriptionRegistered
Emits the confirmed
SubscriptionState after the Pushctl API registers the native push identifier.registrationFailed
registrationFailed
Emits a
message when native registration, server registration, or the registration wait fails.notificationOpened
notificationOpened
Emits
notificationId, deliveryId, title, body, image and action URLs, and string-valued data when the user opens a notification.notificationWillDisplay
notificationWillDisplay
Emits the same object before foreground display.
Subscription state
Permission can be
unknown, not_determined, authorized, provisional, ephemeral, or denied. Android commonly uses the first, second, third, and last values.