Gets the Installations service for the default app or a given app.getInstallations() can be called with no arguments to access the default app's Installations service or as getInstallations(app) to access the Installations service associated with a specific app.
Gets the Installations service for the default app or a given app.
getInstallations() can be called with no arguments to access the default app's Installations service or as getInstallations(app) to access the Installations service associated with a specific app.
[[["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-05-21 UTC."],[],[],null,["# firebase-admin.installations package\n\nFirebase Instance ID service.\n\nFunctions\n---------\n\n| Function | Description |\n|-------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [getInstallations(app)](./firebase-admin.installations.md#getinstallations_8a40afc) | Gets the [Installations](./firebase-admin.installations.installations.md#installations_class) service for the default app or a given app.`getInstallations()` can be called with no arguments to access the default app's `Installations` service or as `getInstallations(app)` to access the `Installations` service associated with a specific app. |\n\nClasses\n-------\n\n| Class | Description |\n|-----------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------|\n| [FirebaseInstallationsError](./firebase-admin.installations.firebaseinstallationserror.md#firebaseinstallationserror_class) | Firebase Installations service error code structure. This extends `FirebaseError`. |\n| [Installations](./firebase-admin.installations.installations.md#installations_class) | The `Installations` service for the current app. |\n| [InstallationsClientErrorCode](./firebase-admin.installations.installationsclienterrorcode.md#installationsclienterrorcode_class) | |\n\ngetInstallations(app)\n---------------------\n\nGets the [Installations](./firebase-admin.installations.installations.md#installations_class) service for the default app or a given app.\n\n`getInstallations()` can be called with no arguments to access the default app's `Installations` service or as `getInstallations(app)` to access the `Installations` service associated with a specific app.\n\n**Signature:** \n\n export declare function getInstallations(app?: App): Installations;\n\n### Parameters\n\n| Parameter | Type | Description |\n|-----------|------|------------------------------------------------------------------------------------------------------------------------------|\n| app | App | Optional app whose `Installations` service to return. If not provided, the default `Installations` service will be returned. |\n\n**Returns:**\n\n[Installations](./firebase-admin.installations.installations.md#installations_class)\n\nThe default `Installations` service if no app is provided or the `Installations` service associated with the provided app.\n\n### Example 1\n\n // Get the Installations service for the default app\n const defaultInstallations = getInstallations();\n\n### Example 2\n\n // Get the Installations service for a given app\n const otherInstallations = getInstallations(otherApp);"]]