コンソールへ移動

A reference to a Firebase Android app.

Do not call this constructor directly. Instead, use projectManagement.androidApp().

Index

Properties

appId

appId: string

Methods

addShaCertificate

  • Adds the given SHA certificate to this Android app.

    Parameters

    Returns Promise<void>

    A promise that resolves when the given certificate has been added to the Android app.

deleteShaCertificate

  • deleteShaCertificate(certificateToRemove: ShaCertificate): Promise<void>
  • Deletes the specified SHA certificate from this Android app.

    Parameters

    Returns Promise<void>

    A promise that resolves when the specified certificate has been removed from the Android app.

getConfig

  • getConfig(): Promise<string>
  • Gets the configuration artifact associated with this app.

    Returns Promise<string>

    A promise that resolves to the Android app's Firebase config file, in UTF-8 string format. This string is typically intended to be written to a JSON file that gets shipped with your Android app.

getMetadata

  • Retrieves metadata about this Android app.

    Returns Promise<AndroidAppMetadata>

    A promise that resolves to the retrieved metadata about this Android app.

getShaCertificates

  • Gets the list of SHA certificates associated with this Android app in Firebase.

    Returns Promise<ShaCertificate[]>

    The list of SHA-1 and SHA-256 certificates associated with this Android app in Firebase.

setDisplayName

  • setDisplayName(newDisplayName: string): Promise<void>
  • Sets the optional user-assigned display name of the app.

    Parameters

    • newDisplayName: string

      The new display name to set.

    Returns Promise<void>

    A promise that resolves when the display name has been set.