Remote Config

Firebase remote Config

ENABLE or DISABLE

set true for fetch config with firebase remote config

public class AppConfig {
    public static final boolean USE_REMOTE_CONFIG = true;
}

Remote config is used to update data and some important configurations in the application. This configuration can change from firebase console .

This step is optional, you can change App Config directly to file on android AppConfig.java, but after app publish you can change app configration from firebase remote Config.

If you need more explanation about Remote Config here video from Firebase

Remote Config used for this app, you can configure Ads, Notification, and General data from this file. Some values are not explained and can be understood easily according to the variable name * value can change remotely (optional), please read documentation to follow instruction.

We have 3 section for config, General, Ads, Notification :

AppConfig.java
public class AppConfig {
    // config for General Application
    public static class General {
        . . .
    }

    // config for Ad Network
    public static class Ads {
        . . .
    }
    
    // config for Notification
    public static class Notification {
        . . .
    }
}

How to change Config?

1. Go to your firebase console https://console.firebase.google.com/, select your project 2. Go to menu Remote Config

3. Add Key Value , key is the lowercase name variable at AppConfig.java this is remote config form

Last updated