public class FirebaseInstallations extends Object
implements FirebaseInstallationsApi

Entry point for Firebase Installations.

Firebase Installations does

Public Method Summary

Task<Void>
delete()
Call to delete this Firebase app installation from Firebase backend.
Task<String>
getId()
Returns a globally unique identifier of this Firebase app installation.
static FirebaseInstallations
getInstance()
Returns the FirebaseInstallations initialized with the default FirebaseApp.
static FirebaseInstallations
getInstance(FirebaseApp app)
Returns the FirebaseInstallations initialized with a custom FirebaseApp.
Task<InstallationTokenResult>
getToken(boolean forceRefresh)
Returns a valid authentication token for the Firebase installation.

Inherited Method Summary

Public Methods

public Task<Void> delete ()

Call to delete this Firebase app installation from Firebase backend. This call would possibly lead Firebase Notification, Firebase RemoteConfig, Firebase Predictions or Firebase In-App Messaging not function properly.

public Task<String> getId ()

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

public static FirebaseInstallations getInstance ()

Returns the FirebaseInstallations initialized with the default FirebaseApp.

Returns

public static FirebaseInstallations getInstance (FirebaseApp app)

Returns the FirebaseInstallations initialized with a custom FirebaseApp.

Parameters
app a custom FirebaseApp
Returns

public Task<InstallationTokenResult> getToken (boolean forceRefresh)

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

Should only be called if the Firebase Installation is registered.

Parameters
forceRefresh Options to get FIS Auth Token either by force refreshing or not.