PushClient
Implementation of PushClient that provides Push notification functionality. This client handles Push credential management and notification handling.
Parameters
The Push configuration.
The PushStorage implementation to use. If null, a default SQLPushStorage will be created.
Functions
Creates a Push Credential from a standard pushauth:// URI (typically from a QR code).
Approve a biometric push notification. This method approves the authentication request for the given biometric notification with the provided authentication method.
Approve a challenge-based push notification. This method approves the authentication request for the given challenge notification with the provided challenge response.
Approve a push notification. This method approves the authentication request for the given notification.
Manually trigger notification cleanup based on the configured cleanup mode. This method can be used to clean up notifications outside of the automatic cleanup process.
Delete a Push credential by ID. This method removes the credential from local storage but does not delete it from the server.
Deny a push notification. This method denies the authentication request for the given notification.
Get all push notifications. This method returns all stored push notifications, regardless of their status.
Get a Push credential by ID.
Get all Push credentials.
Get the current device token.
Get a push notification by ID.
Get all pending push notifications. This method returns all notifications that have not been approved or denied.
Initialize the Push client.
Process a push notification message from Firebase Cloud Messaging. This method extracts data from the RemoteMessage and creates a PushNotification object.
Process a push notification message received as a string. This method parses the string message data (typically a JWT) and creates a PushNotification object.
Process a push notification message. This method parses the message data and creates a PushNotification object.
Save a Push credential.
Set the device token for push notifications. This method should be called when the device token changes. It updates the token locally and on the server using the specific PushHandler for the credential's platform. If it fails to update the token locally, the method will not attempt to update it on the server.