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
Link copied to clipboard
val FirebaseInstallations.ios: FIRInstallations

The underlying Firebase iOS SDK object.

Link copied to clipboard
val FirebaseInstallations.js: Installations

The underlying Firebase JS SDK object.

Functions

Link copied to clipboard
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.

Link copied to clipboard
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.

Link copied to clipboard
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.