Enrolls a new push credential from a pushauth:// URI.
The pushauth:// enrollment URI received from the server.
A promise that resolves to the newly enrolled PushCredential.
Approves a biometric push notification using the specified authentication method.
The unique notification identifier.
The biometric authentication method identifier.
A promise that resolves to true when approved successfully.
Approves a challenge push notification with a user-provided response.
The unique notification identifier.
The user's challenge response string.
A promise that resolves to true when approved successfully.
Approves a standard push notification.
The unique notification identifier.
A promise that resolves to true when approved successfully.
Runs the configured notification cleanup strategy.
OptionalcredentialId: stringOptional credential identifier. When provided, only notifications associated with that credential are considered for cleanup. When omitted, cleanup applies across all credentials.
A promise resolving to the number of notifications that were removed.
PushError with code 'not_initialized' if the client is not initialized.
Releases native push client resources and clears cached state.
A promise that resolves when resources are released.
Deletes a push credential by its identifier.
The unique credential identifier to delete.
A promise that resolves to true if deleted, false if not found.
PushError with code 'storage_failure' if deletion fails.
Denies a push notification.
The unique notification identifier.
A promise that resolves to true when denied successfully.
Returns all push notifications stored on the device.
A promise resolving to an array of all PushNotification objects.
PushError with code 'not_initialized' if the client is not initialized.
Returns a specific push credential by its identifier.
The unique credential identifier.
A promise that resolves to the PushCredential, or null if not found.
PushError with code 'not_initialized' if the client is not initialized.
Returns all push credentials stored on the device.
A promise that resolves to an array of PushCredential objects.
PushError with code 'not_initialized' if the client is not initialized.
Returns the current device push token.
A promise that resolves to the device token string, or null if not set.
PushError with code 'not_initialized' if the client is not initialized.
Returns a specific push notification by its identifier.
The unique notification identifier.
A promise resolving to the PushNotification, or null if not found.
PushError with code 'not_initialized' if the client is not initialized.
Returns all push notifications that are pending a user response.
A promise resolving to an array of pending PushNotification objects.
PushError with code 'not_initialized' if the client is not initialized.
Registers a callback invoked when a Ping push notification arrives.
The SDK calls processNotification internally before invoking the callback.
The callback receives the parsed PushNotification, or null when the
payload was not a recognised Ping push message.
The subscription is removed automatically when close() is called.
Invoked with the notification or null.
An unsubscribe function that removes only this subscription.
Registers a callback invoked after the device push token has been successfully registered with the native SDK.
Fires both for tokens that arrived before createPushClient() was called
(replayed at creation time) and for subsequent token rotations.
Guaranteed to fire after setDeviceToken has completed, so calling
getDeviceToken() inside the callback always returns the new token.
The subscription is removed automatically when close() is called.
Invoked with the registered token string.
An unsubscribe function that removes only this subscription.
Processes an incoming push notification from a dictionary payload.
The raw push message data dictionary (e.g. from FCM getData()
on Android or APNs userInfo on iOS).
A promise resolving to a PushNotification, or null for unsupported payloads.
PushError with code 'message_parsing_failed' if the payload cannot be parsed.
Processes an incoming push notification from a raw string or JWT payload.
The raw push message string received from the push service.
A promise resolving to a PushNotification, or null for unsupported payloads.
PushError with code 'message_parsing_failed' if the payload cannot be parsed.
Fetches the current platform push token and registers it with the native SDK.
On Android, fetches the current FCM registration token and calls setDeviceToken
internally. On iOS this is a no-op — the APNs token is delivered via AppDelegate.
Useful when the automatic token delivery has not completed yet.
A promise resolving to the token string, or null on iOS.
PushError when the FCM token fetch fails.
Saves an updated credential back to native storage.
The credential object to persist. Must have been obtained
from the bridge (e.g. via getCredential). The sharedSecret field is
never included in the JS representation and is handled natively.
A promise that resolves to the saved PushCredential.
Updates the device push token, optionally scoped to a specific credential.
The new device push token (FCM token on Android, APNs token on iOS).
OptionalcredentialId: stringOptional credential identifier. When omitted, the token is set globally for all credentials.
A promise that resolves to true when the token is successfully updated.
PushError with code 'registration_failed' if the server update fails.
Reusable client for push MFA operations.
Remarks
Obtained by calling createPushClient. The underlying native
PushClientinstance is initialized eagerly at creation time.Example