The app associated with the Performance service
instance.
example
var app = analytics.app;
defaultConfig
defaultConfig:{}
Object containing default values for configs.
Type declaration
[key: string]: string | number | boolean
fetchTimeMillis
fetchTimeMillis:number
The Unix timestamp in milliseconds of the last successful fetch, or negative one if
the RemoteConfig instance either hasn't fetched or initialization
is incomplete.
Makes the last fetched config available to the getters.
Returns a promise which resolves to true if the current call activated the fetched configs.
If the fetched configs were already activated, the promise will resolve to false.
Returns Promise<boolean>
ensureInitialized
ensureInitialized
(): Promise<void>
Ensures the last activated config are available to the getters.
Returns Promise<void>
fetch
fetch
(): Promise<void>
Fetches and caches configuration from the Remote Config service.
Returns Promise<void>
fetchAndActivate
fetchAndActivate
(): Promise<boolean>
Performs fetch and activate operations, as a convenience.
Returns a promise which resolves to true if the current call activated the fetched configs.
If the fetched configs were already activated, the promise will resolve to false.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-07-27 UTC."],[],[],null,["- [firebase](/docs/reference/js/v8/firebase).\n- [remoteConfig](/docs/reference/js/v8/firebase.remoteconfig).\n- RemoteConfig \nThe Firebase Remote Config service interface.\n\nDo not call this constructor directly. Instead, use\n[`firebase.remoteConfig()`](/docs/reference/js/v8/firebase.remoteconfig).\n\nIndex\n\nProperties\n\n- [app](/docs/reference/js/v8/firebase.remoteconfig.RemoteConfig#app)\n- [defaultConfig](/docs/reference/js/v8/firebase.remoteconfig.RemoteConfig#defaultconfig)\n- [fetchTimeMillis](/docs/reference/js/v8/firebase.remoteconfig.RemoteConfig#fetchtimemillis)\n- [lastFetchStatus](/docs/reference/js/v8/firebase.remoteconfig.RemoteConfig#lastfetchstatus)\n- [settings](/docs/reference/js/v8/firebase.remoteconfig.RemoteConfig#settings)\n\nMethods\n\n- [activate](/docs/reference/js/v8/firebase.remoteconfig.RemoteConfig#activate)\n- [ensureInitialized](/docs/reference/js/v8/firebase.remoteconfig.RemoteConfig#ensureinitialized)\n- [fetch](/docs/reference/js/v8/firebase.remoteconfig.RemoteConfig#fetch)\n- [fetchAndActivate](/docs/reference/js/v8/firebase.remoteconfig.RemoteConfig#fetchandactivate)\n- [getAll](/docs/reference/js/v8/firebase.remoteconfig.RemoteConfig#getall)\n- [getBoolean](/docs/reference/js/v8/firebase.remoteconfig.RemoteConfig#getboolean)\n- [getNumber](/docs/reference/js/v8/firebase.remoteconfig.RemoteConfig#getnumber)\n- [getString](/docs/reference/js/v8/firebase.remoteconfig.RemoteConfig#getstring)\n- [getValue](/docs/reference/js/v8/firebase.remoteconfig.RemoteConfig#getvalue)\n- [setLogLevel](/docs/reference/js/v8/firebase.remoteconfig.RemoteConfig#setloglevel)\n\nProperties\n\napp \napp: [App](/docs/reference/js/v8/firebase.app.App) \nThe [app](/docs/reference/js/v8/firebase.app.App) associated with the `Performance` service\ninstance.\n\nexample\n:\n\n var app = analytics.app;\n\n\ndefaultConfig \ndefaultConfig: {} \nObject containing default values for configs. \n\nType declaration\n\n-\n\n \\[key: string\\]: string \\| number \\| boolean\n\nfetchTimeMillis \nfetchTimeMillis: number \nThe Unix timestamp in milliseconds of the last *successful* fetch, or negative one if\nthe [RemoteConfig](/docs/reference/js/v8/firebase.remoteconfig.RemoteConfig) instance either hasn't fetched or initialization\nis incomplete.\n\nlastFetchStatus \nlastFetchStatus: [FetchStatus](/docs/reference/js/v8/firebase.remoteconfig#fetchstatus) \nThe status of the last fetch *attempt*.\n\nsettings \nsettings: [Settings](/docs/reference/js/v8/firebase.remoteconfig.Settings) \nDefines configuration for the Remote Config SDK.\n\nMethods\n\nactivate\n\n- activate ( ) : Promise \\\u003c boolean \\\u003e\n- Makes the last fetched config available to the getters.\n Returns a promise which resolves to true if the current call activated the fetched configs.\n If the fetched configs were already activated, the promise will resolve to false.\n\n Returns Promise\\\u003cboolean\\\u003e\n\nensureInitialized\n\n- ensureInitialized ( ) : Promise \\\u003c void \\\u003e\n- Ensures the last activated config are available to the getters.\n\n Returns Promise\\\u003cvoid\\\u003e\n\nfetch\n\n- fetch ( ) : Promise \\\u003c void \\\u003e\n- Fetches and caches configuration from the Remote Config service.\n\n Returns Promise\\\u003cvoid\\\u003e\n\nfetchAndActivate\n\n- fetchAndActivate ( ) : Promise \\\u003c boolean \\\u003e\n- Performs fetch and activate operations, as a convenience.\n Returns a promise which resolves to true if the current call activated the fetched configs.\n If the fetched configs were already activated, the promise will resolve to false.\n\n Returns Promise\\\u003cboolean\\\u003e\n\ngetAll\n\n- getAll ( ) : {}\n- Gets all config.\n\n Returns {}\n -\n\n \\[key: string\\]: [Value](/docs/reference/js/v8/firebase.remoteconfig.Value)\n\ngetBoolean\n\n- getBoolean ( key : string ) : boolean\n- Gets the value for the given key as a boolean.\n\n Convenience method for calling `remoteConfig.getValue(key).asBoolean()`.\n\n Parameters\n -\n\n key: string\n\n Returns boolean\n\ngetNumber\n\n- getNumber ( key : string ) : number\n- Gets the value for the given key as a number.\n\n Convenience method for calling `remoteConfig.getValue(key).asNumber()`.\n\n Parameters\n -\n\n key: string\n\n Returns number\n\ngetString\n\n- getString ( key : string ) : string\n- Gets the value for the given key as a String.\n\n Convenience method for calling `remoteConfig.getValue(key).asString()`.\n\n Parameters\n -\n\n key: string\n\n Returns string\n\ngetValue\n\n- getValue ( key : string ) : [Value](/docs/reference/js/v8/firebase.remoteconfig.Value)\n- Gets the [Value](/docs/reference/js/v8/firebase.remoteconfig.Value) for the given key.\n\n Parameters\n -\n\n key: string\n\n Returns [Value](/docs/reference/js/v8/firebase.remoteconfig.Value)\n\nsetLogLevel\n\n- setLogLevel ( logLevel : [LogLevel](/docs/reference/js/v8/firebase.remoteconfig#loglevel) ) : void\n- Defines the log level to use.\n\n Parameters\n -\n\n logLevel: [LogLevel](/docs/reference/js/v8/firebase.remoteconfig#loglevel)\n\nReturns void"]]
The Firebase Remote Config service interface.
Do not call this constructor directly. Instead, use
firebase.remoteConfig()
.