Use the firebase-installations module
masterfirebase-installations module is a direct forward of the Firebase Installations library. It is primarily used to retrieve the unique installation ID for the current application instance.repository·master·Indexed 23 days ago
https://github.com/gitliveapp/firebase-kotlin-sdkA Kotlin-first, multiplatform SDK for Firebase that enables the use of Firebase services in common source code for iOS, Android, Desktop, and Web. It replaces callbacks with suspending functions and Flows, utilizes kotlinx.serialization for data mapping, and provides a DSL for Firestore queries. The SDK includes modules for Analytics, Auth, Remote Config, Realtime Database, Firestore, Functions, Installations, Messaging, Performance, and Storage.
firebase-installations module is a direct forward of the Firebase Installations library. It is primarily used to retrieve the unique installation ID for the current application instance.firebase-config module is a direct forward of the Firebase Remote Config library. Use this module to implement remote feature flags and manage configuration values that can be updated remotely without requiring a new app release.firebase-functions module provides a direct forward of the Firebase Functions library. Its primary purpose is to allow you to call Firebase Remote Functions from your Kotlin application.firebase-auth module is a direct forward of the Firebase Authentication library. It provides core authentication capabilities, such as authenticating users with providers like Google or Apple.firebase-app module is a direct forward of the Firebase App library. Its primary purpose is to provide the default FirebaseApp instances required to initialize and access other Firebase services within your Kotlin application.firebase-analytics module is a direct forward of the Firebase Analytics library. It is used to implement core analytics functionality, primarily for logging events to Firebase.firebase-database module is a direct forward of the Firebase Realtime Database library. It is used for storing and retrieving data in a NoSQL, JSON-like structure.firebase-storage module is a direct forward of the Firebase Storage library. It provides the core functionality required for managing files in Firebase Storage, such as uploading and storing files.firebase-perf module is a direct forward of the Firebase Performance library. It is used to track application performance metrics.firebase-firestore module is a direct forward of the Firebase Firestore library. It provides the core functionality required for storing, retrieving, and managing data within Cloud Firestore.firebase-messaging module is a direct forward of the Firebase Messaging library. It provides core functionality for handling cloud messages, such as subscribing to specific messaging topics.The SDK uses Kotlin-native asynchronous patterns instead of callbacks or listeners:
Asynchronous operations that return a single value (or no value) are represented as suspend functions. Unlike callback-based APIs, waiting for the result is implicit. If you do not want to wait for the result, you must launch a new coroutine.
Asynchronous streams of values are represented by Flow.
buffer operator to specify a buffer size and control back-pressure, or use the conflate operator if you only care about the latest value.