sendApproval
abstract suspend fun sendApproval(credential: PushCredential, notification: PushNotification, params: Map<String, Any>): Result<Boolean>(source)
Send to the server an approval response for a notification that was received. How the approval 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 approval.
Return
Result.success with true on success, Result.success with false if the approval could not be sent due to missing input, 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 approve.
params
Additional parameters.