The City Docs
7.4
7.4
  • Welcome
  • ADMIN PANEL
    • Import Project
    • Structure
    • Notification
    • MySQL Database
    • Add New Category
    • News Info
    • Custom Color
    • Change Log
  • ANDROID
    • Getting Started
      • Installation
      • Import Project
    • Structure
    • Package Name ( app id )
    • Firebase [must]
    • REST API
      • Configure API Url
      • Validate Your Web
    • Category
      • Integration
      • Add New
    • Remote Config
    • Ad Networks
    • Maps Configuration
    • Sort By Distance
    • Lazy Load
    • SQLite Database
    • Custom Color
    • Change Log
  • License
Powered by GitBook
On this page
  1. ANDROID

Remote Config

Firebase remote Config

PreviousAdd NewNextAd Networks

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?

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

1. Go to your firebase console , select your project 2. Go to menu Remote Config

https://console.firebase.google.com/