com.google.firebase.messaging.ktx
Top-level functions summary
inline RemoteMessage |
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 funremoteMessage(to: String, crossinline init: RemoteMessage.Builder.() -> Unit): RemoteMessage
Returns a RemoteMessage
instance initialized using the init
function.
Important In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. For details, see the FAQ about this initiative.
Extension properties
messaging
val Firebase.messaging: FirebaseMessaging
Accessing this object for Kotlin apps has changed; see the migration guide.
Returns the FirebaseMessaging
instance of the default FirebaseApp
.
Important In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. For details, see the FAQ about this initiative.