Property

appId

non-null string

The globally unique, Firebase-assigned identifier of the app.

Example

var appId = androidApp.appId;

Methods

addShaCertificate

addShaCertificate(certificateToAdd) returns Promise containing void

Adds the given SHA certificate to this Android app.

Parameter

certificateToAdd

admin.projectManagement.ShaCertificate

The SHA certificate to add.

Value must not be null.

Returns

non-null Promise containing void A promise that resolves when the given certificate has been added to the Android app.

deleteShaCertificate

deleteShaCertificate(certificateToDelete) returns Promise containing void

Deletes the specified SHA certificate from this Android app.

Parameter

certificateToDelete

admin.projectManagement.ShaCertificate

The SHA certificate to delete.

Value must not be null.

Returns

non-null Promise containing void A promise that resolves when the specified certificate has been removed from the Android app.

getConfig

getConfig() returns Promise containing string

Gets the configuration artifact associated with this app.

Returns

non-null Promise containing 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

getMetadata() returns Promise containing admin.projectManagement.AndroidAppMetadata

Retrieves metadata about this Android app.

Returns

non-null Promise containing admin.projectManagement.AndroidAppMetadata A promise that resolves to the retrieved metadata about this Android app.

getShaCertificates

getShaCertificates() returns Promise containing Array of admin.projectManagement.ShaCertificate

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

Returns

non-null Promise containing Array of admin.projectManagement.ShaCertificate The list of SHA-1 and SHA-256 certificates associated with this Android app in Firebase.

setDisplayName

setDisplayName(newDisplayName) returns Promise containing void

Sets the optional user-assigned display name of the App.

Parameter

newDisplayName

string

The new display name to set.

Value must not be null.

Returns

non-null Promise containing void A promise that resolves when the display name has been set.