Stay organized with collections
Save and categorize content based on your preferences.
Type aliases
FetchStatus
FetchStatus: "no-fetch-yet" | "success" | "failure" | "throttle"
LogLevel
LogLevel: "debug" | "error" | "silent"
ValueSource
ValueSource: "static" | "default" | "remote"
Functions
isSupported
- isSupported
(
)
:
Promise
<
boolean
>
-
Returns Promise<boolean>
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-09-28 UTC.
[null,null,["Last updated 2023-09-28 UTC."],[],[],null,["# remoteConfig | JavaScript SDK\n\n- [firebase](/docs/reference/js/v8/firebase).\n- remoteConfig\n============================================================\n\nThe Remote Config SDK does not work in a Node.js environment.\n\n### Callable\n\n- remoteConfig ( app ? : [App](/docs/reference/js/v8/firebase.app.App) ) : [RemoteConfig](/docs/reference/js/v8/firebase.remoteconfig.RemoteConfig)\n- Gets the [`RemoteConfig`](/docs/reference/js/v8/firebase.remoteconfig.RemoteConfig) instance.\n\n The Remote Config SDK does not work in a Node.js environment.\n\n example\n :\n\n // Get the RemoteConfig instance for the default app\n const defaultRemoteConfig = firebase.remoteConfig();\n\n\n #### Parameters\n\n -\n\n ##### Optional app: [App](/docs/reference/js/v8/firebase.app.App)\n\n The app to create a Remote Config service for. If not passed, uses the default app.\n\n #### Returns [RemoteConfig](/docs/reference/js/v8/firebase.remoteconfig.RemoteConfig)\n\nIndex\n-----\n\n### Interfaces\n\n- [RemoteConfig](/docs/reference/js/v8/firebase.remoteconfig.RemoteConfig)\n- [Settings](/docs/reference/js/v8/firebase.remoteconfig.Settings)\n- [Value](/docs/reference/js/v8/firebase.remoteconfig.Value)\n\n### Type aliases\n\n- [FetchStatus](/docs/reference/js/v8/firebase.remoteconfig#fetchstatus)\n- [LogLevel](/docs/reference/js/v8/firebase.remoteconfig#loglevel)\n- [ValueSource](/docs/reference/js/v8/firebase.remoteconfig#valuesource)\n\n### Functions\n\n- [isSupported](/docs/reference/js/v8/firebase.remoteconfig#issupported)\n\nType aliases\n------------\n\n### FetchStatus\n\nFetchStatus: \"no-fetch-yet\" \\| \"success\" \\| \"failure\" \\| \"throttle\" \nSummarizes the outcome of the last attempt to fetch config from the Firebase Remote Config server.\n\n- \"no-fetch-yet\" indicates the [RemoteConfig](/docs/reference/js/v8/firebase.remoteconfig.RemoteConfig) instance has not yet attempted to fetch config, or that SDK initialization is incomplete.\n- \"success\" indicates the last attempt succeeded.\n- \"failure\" indicates the last attempt failed.\n- \"throttle\" indicates the last attempt was rate-limited.\n\n### LogLevel\n\nLogLevel: \"debug\" \\| \"error\" \\| \"silent\" \nDefines levels of Remote Config logging.\n\n### ValueSource\n\nValueSource: \"static\" \\| \"default\" \\| \"remote\" \nIndicates the source of a value.\n\n- \"static\" indicates the value was defined by a static constant.\n- \"default\" indicates the value was defined by default config.\n- \"remote\" indicates the value was defined by fetched config.\n\nFunctions\n---------\n\n### isSupported\n\n- isSupported ( ) : Promise \\\u003c boolean \\\u003e\n- This method provides two different checks:\n 1. Check if IndexedDB exists in the browser environment.\n 2. Check if the current browser context allows IndexedDB `open()` calls.\n\n It returns a `Promise` which resolves to true if a [RemoteConfig](/docs/reference/js/v8/firebase.remoteconfig.RemoteConfig) instance\n can be initialized in this environment, or false if it cannot.\n\n #### Returns Promise\\\u003cboolean\\\u003e"]]
The Remote Config SDK does not work in a Node.js environment.