Skip to main content
The plugin supports Capacitor 7 and 8 and exposes the native Pushctl iOS and Android SDKs through one TypeScript API.
1

Install and synchronize

2

Complete native setup

Configure Firebase for Android. For iOS, enable the Push Notifications capability and forward both APNs registration callbacks from AppDelegate.swift. See native setup.
3

Initialize

4

Request permission

5

Wait for confirmed registration

This resolves only after APNs or Firebase registration is confirmed by the Pushctl API. It rejects if native registration fails, the API rejects registration, or no native token arrives within 15 seconds.
6

Identify the signed-in user

login() resolves only after the Pushctl API accepts the association. It rejects if the installation is not registered or the request fails.
7

Handle opens

Call handle.remove() when the listener’s lifecycle ends.
Use a Client token. The application bundle contains values passed from JavaScript to the native plugin.

Migrate from another provider

Keep the existing provider enabled until waitForRegistration() resolves and login() succeeds. Permission alone does not prove that Pushctl has an active installation.