- firebase.
- remoteConfig
The Remote Config SDK does not work in a Node.js environment.
Callable
- remote
Config(app?: App):RemoteConfig Gets the
RemoteConfiginstance.The Remote Config SDK does not work in a Node.js environment.
- example
// Get the RemoteConfig instance for the default appconst defaultRemoteConfig = firebase.remoteConfig();
Parameters
Optional app:App
The app to create a Remote Config service for. If not passed, uses the default app.
ReturnsRemoteConfig
Index
Type aliases
FetchStatus
Summarizes the outcome of the last attempt to fetch config from the Firebase Remote Config server.
- "no-fetch-yet" indicates theRemoteConfig instance has not yet attemptedto fetch config, or that SDK initialization is incomplete.
- "success" indicates the last attempt succeeded.
- "failure" indicates the last attempt failed.
- "throttle" indicates the last attempt was rate-limited.
LogLevel
Defines levels of Remote Config logging.
ValueSource
Indicates the source of a value.
- "static" indicates the value was defined by a static constant.
- "default" indicates the value was defined by default config.
- "remote" indicates the value was defined by fetched config.
Functions
isSupported
- is
Supported():Promise<boolean> This method provides two different checks:
- Check if IndexedDB exists in the browser environment.
- Check if the current browser context allows IndexedDB
open()calls.
It returns a
Promisewhich resolves to true if aRemoteConfig instancecan be initialized in this environment, or false if it cannot.ReturnsPromise<boolean>
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 2023-09-28 UTC.