removePushToken

suspend fun removePushToken(context: Context, account: MessengerAccount): Result<Unit>

Removes the previously registered push token from the Genesys Cloud backend.

Call this method when the user opts out of push notifications or when the app needs to stop receiving chat notifications (for example, on logout).

Return

A Result that succeeds if the token was removed, or carries an com.genesys.cloud.core.utils.NRError describing what went wrong.

Parameters

context

Application context used by the underlying push handler.

account

The MessengerAccount instance that was used to register the token.