Go to console

Callable

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

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

    example
    // Get the Instance ID service for the default app
    var defaultInstanceId = admin.instanceId();
    example
    // Get the Instance ID service for a given app
    var otherInstanceId = admin.instanceId(otherApp);

    Parameters

    • Optional app: App

      Optional app whose InstanceId service to return. If not provided, the default InstanceId service will be returned.

    Returns InstanceId

    The default InstanceId service if no app is provided or the InstanceId service associated with the provided app.

Index

Interfaces