awaitUnregisterHandler

suspend fun SendbirdPushHelper.awaitUnregisterHandler(unregisterAllTokens: Boolean = false): String?

Unregisters push handler for not receiving FCM/HMS push notifications. When you call this we will request at the server to remove FCM/HMS push token. And you'll not be able to receive any more push notification

Return

The previously registered token, or null if the handler was not registered before.

Since

4.17.0

Parameters

unregisterAllTokens

if it set as true unregisters all push token bound to the current user. Defaults to false.