You can set up your app to use Firebase Remote Config with in-app default values, deploy your app, and then later set up the Firebase project associated with your app to override those values. To learn more about Remote Config, see Remote Config introduction.
Add or edit a parameter
- On the Firebase console navigation bar, click Remote Config.
- Add a parameter or choose a parameter to edit:
- To add a parameter: Click Add Parameter.
- To edit a parameter: Click the parameter you want to change.
- In the Parameter field, enter (or edit) the name of the parameter. This must be the same as a Remote Config parameter key that you use in an app that is associated with this project.
- In the Default Value field, enter (or edit) the server-side default value for the parameter, or leave it as an empty string.
Note: You can also click the Other empty values list and choose No value to create a parameter with no server-side default value. This means that apps that use this parameter will use the in-app default value for this parameter. However, a conditional value will still override the in-app default if the associated condition evaluates to
true
. - (Optional) To add conditional values for the parameter, click Add value for condition, and then select a condition or click Create New Condition. Follow the instructions provided below under Add or edit a condition to add a condition. Then, enter the conditional value.
Note: When more than one condition associated with a parameter's conditional values evaluates to
true
, the first condition shown on the Conditions tab takes priority. You can change the priority of conditions. - To save changes to the parameter click Add Parameter or Update.
- Click Publish to publish changes to the Remote Config settings for this project, making those changes available to apps that use this project.
Add or edit a condition
You can add or edit conditions after you add your first parameter, or while adding or editing parameters.
- On the Firebase console navigation bar, click Remote Config, and then click Conditions.
- Add a condition or choose a condition to edit:
- To add a condition: Click New Condition.
- To edit a condition: Click the condition you want to change.
- In the Define a new condition dialog, enter (or edit) the title for your condition.
- (Optional) Select a color that you can use to keep this condition and similar conditions organized.
- Under Applies if…, do the following to update your condition:
- Click add (+) to add a rule to the condition.
For each rule, choose the rule type, an operator (if available), and a value. See Parameters and conditions for information about the different types of available rules.
- Edit existing rules by changing the rule type, operator or value.
- Click delete (x) to remove a rule from the condition.
- Click add (+) to add a rule to the condition.
- To save changes to the condition click Create Condition or Update Condition.
- Click Publish to publish changes to the Remote Config settings for this project, making those changes available to apps that use this project.
Change the priority of a condition
A parameter will often have more than one conditional value with a condition that evaluates to true
. To determine which value is applied to a parameter, conditions are prioritized with the top condition overriding conditions shown in a lower position on screen. You can change the priority a conditions by reordering it on the Conditions tab.
- On the Firebase console navigation bar, click Remote Config, and then click Conditions.
- Use the double line handle (=) to drag the condition to a new position.
- Click Publish to publish changes to the Remote Config settings for this project, making those changes available to apps that use this project.
Delete a parameter or condition
- On the Firebase console navigation bar, click Remote Config.
- Click Parameters or Conditions.
- Click the parameter or a condition, and then click the trash can icon in the lower left corner.
- Click Publish to publish changes to the Remote Config settings for this project, making those changes available to apps that use this project.
Search parameters and conditions
You can search your project's parameter keys, parameter values, and conditions from the Firebase console using the search box at the top of the Remote Config Parameters tab. This full-text search feature is case-sensitive.
- On the Firebase console navigation bar, click Remote Config.
- Click Parameters, and then enter your search term in the search box at the top of the Parameters tab.