authenticate

suspend fun authenticate(credential: PushCredential, notification: PushNotification, approve: Boolean, challengeResponse: String?): Boolean

Send an authentication response (approve or deny) for a notification.

Return

True if the response was sent successfully, false otherwise.

Parameters

credential

The credential to use for the authentication.

notification

The notification to respond to.

approve

True to approve, false to deny.

challengeResponse

The challenge response for challenge-based authentication (optional).