subscribe

abstract suspend fun subscribe(topic: String): Boolean

Subscribes the current device to an FCM topic.

Return

true if subscription succeeded; false otherwise.

Parameters

topic

The name of the topic to subscribe to.