Remote Config

Firebase remote config

This feature start at youtubers VERSION 3.0, this feature make some value dynamic, you can change from firebase console, in example for API key in case your quotas reach the limit you can change it anytime without update the apk.

Please see file xml for default value below, you only allow change value api_key with your own API_KEY value you got from Configure Android page

res/xml/remote_config_defaults.xml
<defaultsMap>

    <!-- Youtube API key Config, change with your own -->
    <entry>
        <key>youtube_api_key</key>
        <value>your-youtube-API-KEY-here</value>
    </entry>

    <!-- App Version Config, don't change code below -->
    <entry>
        <key>app_version</key>
        <value>0</value>
    </entry>

    <entry>
        <key>force_update</key>
        <value>false</value>
    </entry>

</defaultsMap>

ADD & UPDATE CONFIG

Goto console.firebase.google.com > Select your Yotubers project > Go to menu Remote Config > and Add 3 parameter

Bold name mean config not published yet, you must click button Publish Change to publish all the changes, if you make any change you must press this button

youtube_api_key : api key from console.cloud.google.com, you can change it anytime if your quotas reached the limit

app_version : If application version less than this value, popup update will showing at starting, please make sure your app ready on google play before edit edit this value, if you don't want showing popup update set this to 0

force_update : this value related with popup above, if fore update true popup cannot dismiss by user, and user cannot use the app until they update app from google play

APP VERSION

In case you want all your user update their youtubers app to version 2, you can use this feature to showing update popup of force your user to update. here the step 1. Make sure your app version 2 live on google play 2. Update and publish app_version from firebase console with value 2 3. App with version less than 2 will got dialog like this on starting

Last updated