FcmClientHelper

class FcmClientHelper

Main interaction class for the FCM client

Author

Umang Chamaria

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun addListener(listener: FirebaseMessageListener)

Register a callback for FCM events.

Link copied to clipboard
fun initialise(logLevel: Logger.LogLevel = Logger.LogLevel.ERROR, retryInterval: Long = DEFAULT_RETRY_INTERVAL)

Initialize the FCM client. This needs to be called from the onCreate() of Application class.

Link copied to clipboard
fun removeListener(listener: FirebaseMessageListener)

Remove of a registered callback for FCM events

Link copied to clipboard
fun subscribeToTopics(topics: List<String>)

Subscribe to the given list of topics

Link copied to clipboard
fun unSubscribeTopic(topics: List<String>)

To un-subscribe from messaging topics.