The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/installations

installations package

Firebase Installations

Functions

Function Description
deleteInstallations(installations) Deletes the Firebase Installation and all associated data.
getId(installations) Creates a Firebase Installation if there isn't one for the app and returns the Installation ID.
getInstallations(app) Returns an instance of FirebaseInstallations associated with the given FirebaseApp instance.
getToken(installations, forceRefresh) Returns an Installation auth token, identifying the current Firebase Installation.
onIdChange(installations, callback) Sets a new callback that will get called when Installation ID changes. Returns an unsubscribe function that will remove the callback when called.

Interfaces

Interface Description
FirebaseInstallations Public interface of the FirebaseInstallations SDK.

Type Aliases

Type Alias Description
IdChangeCallbackFn An user defined callback function that gets called when Installations ID changes.
IdChangeUnsubscribeFn Unsubscribe a callback function previously added via .