com.google.firebase.messaging.ktx

Top-level functions summary

inline RemoteMessage
remoteMessage(to: String, crossinline init: RemoteMessage.Builder.() -> Unit)

This function is deprecated. Migrate to use the KTX API from the main module: https://firebase.google.com/docs/android/kotlin-migration.

Extension properties summary

FirebaseMessaging

Accessing this object for Kotlin apps has changed; see the migration guide.

Top-level functions

remoteMessage

inline fun remoteMessage(to: String, crossinline init: RemoteMessage.Builder.() -> Unit): RemoteMessage

Returns a RemoteMessage instance initialized using the init function.

Deprecation Notice: The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in com.google.firebase.firebase-messaging-ktx are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the FAQ about this initiative.

Extension properties

messaging

val Firebase.messagingFirebaseMessaging

Accessing this object for Kotlin apps has changed; see the migration guide.

Returns the FirebaseMessaging instance of the default FirebaseApp.

Deprecation Notice: The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in com.google.firebase.firebase-messaging-ktx are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the FAQ about this initiative.