unsubscribe

abstract suspend fun unsubscribe(topic: String): Boolean

Unsubscribes the current device from an FCM topic.

Return

true if unsubscription succeeded; false otherwise.

Parameters

topic

The name of the topic to unsubscribe from.