FirebaseMessaging

Firebase Cloud Messaging, as the Android SDK's com.google.firebase.messaging.FirebaseMessaging. Receiving messages is platform code on every platform (FirebaseMessagingService on Android).

The JS SDK has no topic subscription (a web client's token is subscribed from a server with the Admin SDK) and no auto-init (a token is only ever generated by getToken): those members do nothing on JS and carry @UnsupportedOnJs, so code compiled for JS gets a warning until it opts in.

firebase-java-sdk has no Cloud Messaging: every operation fails with an UnsupportedOperationException.

Types

Link copied to clipboard
actual object Companion
actual object Companion
expect object Companion
actual object Companion
actual object Companion
actual object Companion

Properties

Link copied to clipboard
val ios: <Error class: unknown class>

The underlying Firebase iOS SDK object.

Link copied to clipboard

Whether the registration token is generated automatically at startup, which apps turn off until the user has consented. Always false on JS, where a token is only generated by getToken; setting it does nothing there.

Always false: the JS SDK only generates a token in getToken. Setting it does nothing.

Kept in memory: there is no registration to initialise on the JVM.

Always false: the JS SDK only generates a token in getToken. Setting it does nothing.

Link copied to clipboard

The underlying Firebase JS SDK object.

The underlying Firebase JS SDK object.

Functions

Link copied to clipboard
actual fun deleteToken(): <Error class: unknown class><Nothing?>
actual fun deleteToken(): <Error class: unknown class><Nothing?>
expect fun deleteToken(): <Error class: unknown class><Nothing?>

Deletes the registration token of this app instance, so it stops receiving messages.

actual fun deleteToken(): <Error class: unknown class><Nothing?>
actual fun deleteToken(): <Error class: unknown class><Nothing?>
actual fun deleteToken(): <Error class: unknown class><Nothing?>
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
actual fun getToken(): <Error class: unknown class><String>
actual fun getToken(): <Error class: unknown class><String>
expect fun getToken(): <Error class: unknown class><String>

The registration token of this app instance, requested from the backend if needed.

actual fun getToken(): <Error class: unknown class><String>
actual fun getToken(): <Error class: unknown class><String>
actual fun getToken(): <Error class: unknown class><String>
Link copied to clipboard
open override fun hashCode(): Int
open override fun hashCode(): Int
open override fun hashCode(): Int
Link copied to clipboard
actual fun subscribeToTopic(topic: String): <Error class: unknown class><Nothing?>
actual fun subscribeToTopic(topic: String): <Error class: unknown class><Nothing?>
expect fun subscribeToTopic(topic: String): <Error class: unknown class><Nothing?>

Subscribes this app instance to topic. A no-op on JS, whose SDK has no client-side topic subscription.

actual fun subscribeToTopic(topic: String): <Error class: unknown class><Nothing?>

A no-op: the JS SDK has no client-side topic subscription (a web token is subscribed from a server with the Admin SDK).

actual fun subscribeToTopic(topic: String): <Error class: unknown class><Nothing?>
actual fun subscribeToTopic(topic: String): <Error class: unknown class><Nothing?>

A no-op: the JS SDK has no client-side topic subscription (a web token is subscribed from a server with the Admin SDK).

Link copied to clipboard
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String
Link copied to clipboard
actual fun unsubscribeFromTopic(topic: String): <Error class: unknown class><Nothing?>
actual fun unsubscribeFromTopic(topic: String): <Error class: unknown class><Nothing?>
expect fun unsubscribeFromTopic(topic: String): <Error class: unknown class><Nothing?>

Unsubscribes this app instance from topic. A no-op on JS, whose SDK has no client-side topic subscription.

actual fun unsubscribeFromTopic(topic: String): <Error class: unknown class><Nothing?>

A no-op: the JS SDK has no client-side topic subscription (a web token is subscribed from a server with the Admin SDK).

actual fun unsubscribeFromTopic(topic: String): <Error class: unknown class><Nothing?>
actual fun unsubscribeFromTopic(topic: String): <Error class: unknown class><Nothing?>

A no-op: the JS SDK has no client-side topic subscription (a web token is subscribed from a server with the Admin SDK).