The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/app

app package

Firebase App

Description

This package coordinates the communication between the different Firebase components

Functions

Function Description
deleteApp(app) Renders this app unusable and frees the resources of all associated services.
getApp(name) Retrieves a FirebaseApp instance.When called with no arguments, the default app is returned. When an app name is provided, the app corresponding to that name is returned.An exception is thrown if the app being retrieved has not yet been initialized.
getApps() A (read-only) array of all initialized apps.
initializeApp(options, name) Creates and initializes a FirebaseApp instance.See Add Firebase to your app and Initialize multiple projects for detailed documentation.
initializeApp(options, config) Creates and initializes a FirebaseApp instance.
onLog(logCallback, options) Sets log handler for all Firebase SDKs.
registerVersion(libraryKeyOrName, version, variant) Registers a library's name and version for platform logging purposes.
setLogLevel(logLevel) Sets log level for all Firebase SDKs.All of the log types above the current log level are captured (i.e. if you set the log level to info, errors are logged, but debug and verbose logs are not).

Interfaces

Interface Description
FirebaseApp A FirebaseApp holds the initialization information for a collection of services.Do not call this constructor directly. Instead, use initializeApp() to create an app.
FirebaseAppConfig Configuration options given to initializeApp()
FirebaseOptions Firebase configuration object

Variables

Variable Description
SDK_VERSION The current SDK version.