Classes

Class Description
InstanceId The InstanceId service enables deleting the Firebase instance IDs associated with Firebase client app instances.

Functions

Function Description
getInstanceId(app) Gets the service for the default app or a given app.getInstanceId() can be called with no arguments to access the default app's service or as getInstanceId(app) to access the service associated with a specific app.

getInstanceId()

Gets the service for the default app or a given app.

getInstanceId() can be called with no arguments to access the default app's service or as getInstanceId(app) to access the service associated with a specific app.

Signature:

export declare function getInstanceId(app?: App): InstanceId;

Parameters

Parameter Type Description
app App Optional app whose InstanceId service to return. If not provided, the default InstanceId service will be returned. The default InstanceId service if no app is provided or the InstanceId service associated with the provided app.

Returns:

InstanceId

Example 1

// Get the Instance ID service for the default app
const defaultInstanceId = getInstanceId();

Example 2

// Get the Instance ID service for a given app
const otherInstanceId = getInstanceId(otherApp);