firebase-admin.installations package Stay organized with collections Save and categorize content based on your preferences.
Firebase Instance ID service.
Functions
| Function | Description |
|---|---|
| getInstallations(app) | Gets theInstallations service for the default app or a given app.getInstallations() can be called with no arguments to access the default app'sInstallations service or asgetInstallations(app) to access theInstallations service associated with a specific app. |
Classes
| Class | Description |
|---|---|
| FirebaseInstallationsError | Firebase Installations service error code structure. This extendsFirebaseError. |
| Installations | TheInstallations service for the current app. |
| InstallationsClientErrorCode |
getInstallations(app)
Gets theInstallations service for the default app or a given app.
getInstallations() can be called with no arguments to access the default app'sInstallations service or asgetInstallations(app) to access theInstallations service associated with a specific app.
Signature:
exportdeclarefunctiongetInstallations(app?:App):Installations;Parameters
| Parameter | Type | Description |
|---|---|---|
| app | App | Optional app whoseInstallations service to return. If not provided, the defaultInstallations service will be returned. |
Returns:
The defaultInstallations service if no app is provided or theInstallations service associated with the provided app.
Example 1
// Get the Installations service for the default appconstdefaultInstallations=getInstallations();Example 2
// Get the Installations service for a given appconstotherInstallations=getInstallations(otherApp);Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-05-21 UTC.