firebase-admin.installations package

Firebase Instance ID service.

Functions

FunctionDescription
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

ClassDescription
FirebaseInstallationsErrorFirebase Installations service error code structure. This extendsFirebaseError.
InstallationsTheInstallations 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

ParameterTypeDescription
appAppOptional app whoseInstallations service to return. If not provided, the defaultInstallations service will be returned.

Returns:

Installations

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.