Configuration
register, waitForRegistration, login, and logout are async throws. Login and logout require a confirmed installation and update local identity only after the API accepts the change.
Subscription state
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.
Permission values
unknown, not_determined, authorized, provisional, ephemeral, and denied.
The production endpoint requires HTTPS. HTTP is allowed only for localhost or
.test development hosts.