Ir a la consola

Gets the InstanceId service for the current app.

example
var instanceId = app.instanceId();
// The above is shorthand for:
// var instanceId = admin.instanceId(app);
returns

The InstanceId service for the current app.

Index

Properties

Methods

Properties

app

app: App

Methods

deleteInstanceId

  • deleteInstanceId(instanceId: string): Promise<void>
  • 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.

    Parameters

    • instanceId: string

      The instance ID to be deleted.

    Returns Promise<void>

    A promise fulfilled when the instance ID is deleted.