InstanceId class

Use Installations instead.

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

Signature:

exportdeclareclassInstanceId

Properties

PropertyModifiersTypeDescription
appAppReturns the app associated with this InstanceId instance.

Methods

MethodModifiersDescription
deleteInstanceId(instanceId)Deletes the specified instance ID and the associated data from Firebase.Note that Google Analytics for Firebase uses its own form of Instance ID to keep track of analytics data. Therefore deleting a Firebase Instance ID does not delete Analytics data. See Delete an Instance ID for more information.

InstanceId.app

Returns the app associated with this InstanceId instance.

Signature:

getapp():App;

InstanceId.deleteInstanceId()

Deletes the specified instance ID and the associated data from Firebase.

Note that Google Analytics for Firebase uses its own form of Instance ID to keep track of analytics data. Therefore deleting a Firebase Instance ID does not delete Analytics data. See Delete an Instance ID for more information.

Signature:

deleteInstanceId(instanceId:string):Promise<void>;

Parameters

ParameterTypeDescription
instanceIdstringThe instance ID to be deleted.

Returns:

Promise<void>

A promise fulfilled when the instance ID is deleted.