[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-14 UTC."],[],[],null,["# installations package\n\nThe Firebase Installations Web SDK. This SDK does not work in a Node.js environment.\n\nFunctions\n---------\n\n| Function | Description |\n|--------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **function(app, ...)** | |\n| [getInstallations(app)](./installations.md#getinstallations_cf608e1) | Returns an instance of [Installations](./installations.installations.md#installations_interface) associated with the given [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface) instance. |\n| **function(installations, ...)** | |\n| [deleteInstallations(installations)](./installations.md#deleteinstallations_606c567) | Deletes the Firebase Installation and all associated data. |\n| [getId(installations)](./installations.md#getid_606c567) | Creates a Firebase Installation if there isn't one for the app and returns the Installation ID. |\n| [getToken(installations, forceRefresh)](./installations.md#gettoken_cf009a7) | Returns a Firebase Installations auth token, identifying the current Firebase Installation. |\n| [onIdChange(installations, callback)](./installations.md#onidchange_b579e0e) | Sets a new callback that will get called when Installation ID changes. Returns an unsubscribe function that will remove the callback when called. |\n\nInterfaces\n----------\n\n| Interface | Description |\n|---------------------------------------------------------------------------|-----------------------------------------------------|\n| [Installations](./installations.installations.md#installations_interface) | Public interface of the Firebase Installations SDK. |\n\nType Aliases\n------------\n\n| Type Alias | Description |\n|-------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|\n| [IdChangeCallbackFn](./installations.md#idchangecallbackfn) | An user defined callback function that gets called when Installations ID changes. |\n| [IdChangeUnsubscribeFn](./installations.md#idchangeunsubscribefn) | Unsubscribe a callback function previously added via [IdChangeCallbackFn](./installations.md#idchangecallbackfn). |\n\nfunction(app, ...)\n------------------\n\n### getInstallations(app)\n\nReturns an instance of [Installations](./installations.installations.md#installations_interface) associated with the given [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface) instance.\n\n**Signature:** \n\n export declare function getInstallations(app?: FirebaseApp): Installations;\n\n#### Parameters\n\n| Parameter | Type | Description |\n|-----------|-----------------------------------------------------------|-------------------------------------------------------------------------|\n| app | [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface) | The [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface) instance. |\n\n**Returns:**\n\n[Installations](./installations.installations.md#installations_interface)\n\nfunction(installations, ...)\n----------------------------\n\n### deleteInstallations(installations)\n\nDeletes the Firebase Installation and all associated data.\n\n**Signature:** \n\n export declare function deleteInstallations(installations: Installations): Promise\u003cvoid\u003e;\n\n#### Parameters\n\n| Parameter | Type | Description |\n|---------------|---------------------------------------------------------------------------|-------------------------------|\n| installations | [Installations](./installations.installations.md#installations_interface) | The `Installations` instance. |\n\n**Returns:**\n\nPromise\\\u003cvoid\\\u003e\n\n### getId(installations)\n\nCreates a Firebase Installation if there isn't one for the app and returns the Installation ID.\n\n**Signature:** \n\n export declare function getId(installations: Installations): Promise\u003cstring\u003e;\n\n#### Parameters\n\n| Parameter | Type | Description |\n|---------------|---------------------------------------------------------------------------|-------------------------------|\n| installations | [Installations](./installations.installations.md#installations_interface) | The `Installations` instance. |\n\n**Returns:**\n\nPromise\\\u003cstring\\\u003e\n\n### getToken(installations, forceRefresh)\n\nReturns a Firebase Installations auth token, identifying the current Firebase Installation.\n\n**Signature:** \n\n export declare function getToken(installations: Installations, forceRefresh?: boolean): Promise\u003cstring\u003e;\n\n#### Parameters\n\n| Parameter | Type | Description |\n|---------------|---------------------------------------------------------------------------|-----------------------------------------------|\n| installations | [Installations](./installations.installations.md#installations_interface) | The `Installations` instance. |\n| forceRefresh | boolean | Force refresh regardless of token expiration. |\n\n**Returns:**\n\nPromise\\\u003cstring\\\u003e\n\n### onIdChange(installations, callback)\n\nSets a new callback that will get called when Installation ID changes. Returns an unsubscribe function that will remove the callback when called.\n\n**Signature:** \n\n export declare function onIdChange(installations: Installations, callback: IdChangeCallbackFn): IdChangeUnsubscribeFn;\n\n#### Parameters\n\n| Parameter | Type | Description |\n|---------------|---------------------------------------------------------------------------|---------------------------------------------------------|\n| installations | [Installations](./installations.installations.md#installations_interface) | The `Installations` instance. |\n| callback | [IdChangeCallbackFn](./installations.md#idchangecallbackfn) | The callback function that is invoked when FID changes. |\n\n**Returns:**\n\n[IdChangeUnsubscribeFn](./installations.md#idchangeunsubscribefn)\n\nA function that can be called to unsubscribe.\n\nIdChangeCallbackFn\n------------------\n\nAn user defined callback function that gets called when Installations ID changes.\n\n**Signature:** \n\n export type IdChangeCallbackFn = (installationId: string) =\u003e void;\n\nIdChangeUnsubscribeFn\n---------------------\n\nUnsubscribe a callback function previously added via [IdChangeCallbackFn](./installations.md#idchangecallbackfn).\n\n**Signature:** \n\n export type IdChangeUnsubscribeFn = () =\u003e void;"]]