FirebaseInstallations

Entry point for Firebase installations.

The Firebase installations service:

  • provides a unique identifier for a Firebase installation

  • provides an auth token for a Firebase installation

  • provides a API to perform GDPR-compliant deletion of a Firebase installation.

Properties

Link copied to clipboard
val FirebaseInstallations.android: FirebaseInstallations
val FirebaseInstallations.android: FirebaseInstallations
Link copied to clipboard
val FirebaseInstallations.ios: FIRInstallations
Link copied to clipboard
val FirebaseInstallations.js: Installations

Functions

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

Call to delete this Firebase app installation from the Firebase backend. This call may cause Firebase Cloud Messaging, Firebase Remote Config, Firebase A/B Testing, or Firebase In-App Messaging to not function properly.

actual suspend fun delete()
actual suspend fun delete()
actual suspend fun delete()
Link copied to clipboard
actual suspend fun getId(): String
expect suspend fun getId(): String

Returns a globally unique identifier of this Firebase app installation. This is a url-safe base64 string of a 128-bit integer.

actual suspend fun getId(): String
actual suspend fun getId(): String
actual suspend fun getId(): String
Link copied to clipboard
actual suspend fun getToken(forceRefresh: Boolean): String
expect suspend fun getToken(forceRefresh: Boolean): String

Returns a valid authentication token for the Firebase installation. Generates a new token if one doesn't exist, is expired, or is about to expire.

actual suspend fun getToken(forceRefresh: Boolean): String
actual suspend fun getToken(forceRefresh: Boolean): String
actual suspend fun getToken(forceRefresh: Boolean): String