- firebase.
- installations.
- Installations
The Firebase Installations service interface.
Do not call this constructor directly. Instead, usefirebase.installations().
Index
Properties
Methods
Properties
app
Theapp associated with theInstallations serviceinstance.
- example
var app = analytics.app;
Methods
delete
- delete():Promise<void>
Deletes the Firebase Installation and all associated data.
ReturnsPromise<void>
getId
- get
Id():Promise<string> Creates a Firebase Installation if there isn't one for the app andreturns the Installation ID.
ReturnsPromise<string>
Firebase Installation ID
getToken
- get
Token(forceRefresh?: boolean):Promise<string> Returns an Authentication Token for the current Firebase Installation.
Parameters
Optional forceRefresh:boolean
ReturnsPromise<string>
Firebase Installation Authentication Token
onIdChange
- on
IdChange(callback: (installationId: string) =>void):() =>void 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:(installationId:string) =>void
- (installationId:string):void
Parameters
installationId:string
Returnsvoid
Returns() =>void
- ():void
Returnsvoid
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-27 UTC.