sendDenial

abstract suspend fun sendDenial(credential: PushCredential, notification: PushNotification, params: Map<String, Any>): Result<Boolean>(source)

Send a denial response for a notification. How the denial is sent depends on the platform and the implementation of this handler. The parameters may include additional information or any other relevant data that the server needs to process the denial.

Return

Result.success with true on success, or Result.failure wrapping an exception if a server or network error occurred.

Parameters

credential

The credential to use for the response.

notification

The notification to deny.

params

Additional parameters.