The Firebase Installations service interface.

Do not call this constructor directly. Instead, use firebase.installations().

Index

Methods

delete

  • delete(): Promise<void>
  • Deletes the Firebase Installation and all associated data.

    Returns Promise<void>

getId

  • getId(): Promise<string>
  • Creates a Firebase Installation if there isn't one for the app and returns the Installation ID.

    Returns Promise<string>

    Firebase Installation ID

getToken

  • getToken(forceRefresh?: boolean): Promise<string>
  • Returns an Authentication Token for the current Firebase Installation.

    Parameters

    • Optional forceRefresh: boolean

    Returns Promise<string>

    Firebase Installation Authentication Token

onIdChange

  • onIdChange(callback: function): function
  • Sets a new callback that will get called when Installlation ID changes. Returns an unsubscribe function that will remove the callback when called.

    Parameters

    • callback: function
        • (installationId: string): void
        • Parameters

          • installationId: string

          Returns void

    Returns function

      • (): void
      • Returns void