FirebaseMessaging

Top level Firebase Cloud Messaging singleton that provides methods for subscribing to topics and sending upstream messages.

Constructors

Link copied to clipboard
constructor(android: FirebaseMessaging)
constructor(ios: FIRMessaging)
constructor(js: Messaging)
constructor()

Properties

Link copied to clipboard
val FirebaseMessaging.android: FirebaseMessaging
Link copied to clipboard
val FirebaseMessaging.ios: FIRMessaging
Link copied to clipboard
val FirebaseMessaging.js: Messaging

Functions

Link copied to clipboard
actual suspend fun deleteToken()
expect suspend fun deleteToken()

Delete FCM token for client

actual suspend fun deleteToken()
actual suspend fun deleteToken()
actual suspend fun deleteToken()
Link copied to clipboard
actual suspend fun getToken(): String
expect suspend fun getToken(): String

Get FCM token for client

actual suspend fun getToken(): String
actual suspend fun getToken(): String
actual suspend fun getToken(): String
Link copied to clipboard
actual fun subscribeToTopic(topic: String)
expect fun subscribeToTopic(topic: String)

Subscribe to a topic.

actual fun subscribeToTopic(topic: String)
actual fun subscribeToTopic(topic: String)
actual fun subscribeToTopic(topic: String)
Link copied to clipboard
actual fun unsubscribeFromTopic(topic: String)
expect fun unsubscribeFromTopic(topic: String)

Unsubscribe from a topic.

actual fun unsubscribeFromTopic(topic: String)
actual fun unsubscribeFromTopic(topic: String)
actual fun unsubscribeFromTopic(topic: String)