Firebase Instance ID service.

## Functions

| Function | Description |
|---|---|
| [getInstallations(app)](https://firebase.google.com/docs/reference/admin/node/firebase-admin.installations#getinstallations_8a40afc) | Gets the [Installations](https://firebase.google.com/docs/reference/admin/node/firebase-admin.installations.installations#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. |

## Classes

| Class | Description |
|---|---|
| [FirebaseInstallationsError](https://firebase.google.com/docs/reference/admin/node/firebase-admin.installations.firebaseinstallationserror#firebaseinstallationserror_class) | Firebase Installations error code structure. This extends `FirebaseError`. |
| [Installations](https://firebase.google.com/docs/reference/admin/node/firebase-admin.installations.installations#installations_class) | The `Installations` service for the current app. |

## Variables

| Variable | Description |
|---|---|
| [InstallationsErrorCode](https://firebase.google.com/docs/reference/admin/node/firebase-admin.installations#installationserrorcode) | The constant mapping for valid Installations client error codes. |

## Type Aliases

| Type Alias | Description |
|---|---|
| [InstallationsErrorCode](https://firebase.google.com/docs/reference/admin/node/firebase-admin.installations#installationserrorcode) | The type definition for valid Installations client error codes. |

## getInstallations(app)

Gets the [Installations](https://firebase.google.com/docs/reference/admin/node/firebase-admin.installations.installations#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.

**Signature:**

    export declare function getInstallations(app?: App): Installations;

### Parameters

| Parameter | Type | Description |
|---|---|---|
| app | App | Optional app whose `Installations` service to return. If not provided, the default `Installations` service will be returned. |

**Returns:**

[Installations](https://firebase.google.com/docs/reference/admin/node/firebase-admin.installations.installations#installations_class)

The default `Installations` service if no app is provided or the `Installations` service associated with the provided app.

### Example 1

    // Get the Installations service for the default app
    const defaultInstallations = getInstallations();

### Example 2

    // Get the Installations service for a given app
    const otherInstallations = getInstallations(otherApp);

## InstallationsErrorCode

The constant mapping for valid Installations client error codes.

**Signature:**

    InstallationsErrorCode: {
        readonly INVALID_ARGUMENT: "invalid-argument";
        readonly INVALID_PROJECT_ID: "invalid-project-id";
        readonly INVALID_INSTALLATION_ID: "invalid-installation-id";
        readonly API_ERROR: "api-error";
    }

## InstallationsErrorCode

The type definition for valid Installations client error codes.

**Signature:**

    export type InstallationsErrorCode = typeof InstallationsErrorCode[keyof typeof InstallationsErrorCode];