Skip to main content

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

Emits the confirmed SubscriptionState after the Pushctl API registers the native push identifier.
Emits a message when native registration, server registration, or the registration wait fails.
Emits notificationId, deliveryId, title, body, image and action URLs, and string-valued data when the user opens a notification.
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.