Firebase remote config 101 easy way.
What’s firebase remote config?
´A cloud service that lets you change the behavior and appearance of your app without requiring users to download an app update.
How does it work?
´Remote Config includes a client library that handles important tasks like fetching parameter values and caching them, while still giving you control over when new values are activated so that they affect your app’s user experience. This lets you safeguard your app experience by controlling the timing of any changes.
Get Start
´Go to https://firebase.google.com/
´Add new project
´Go to Build → Remote config
´Create configuration
´Create parameter and default value and save it.
´When you update data don’t forget to Publish changes every time.
How to setting your mobile project?
Select you platform.
Get your Package name (Android) or Bundle name (iOS) form your project.
Add Firebase to your Android App
Add some code in build.gradle.kts
id("com.google.gms.google-services") version "4.3.15" apply false
id("com.google.gms.google-services")
implementation(platform("com.google.firebase:firebase-bom:32.2.3"))
implementation("com.google.firebase:firebase-analytics-ktx")
Add Firebase to your iOS App
Add some code in AppDelegate
import FirebaseCore
FirebaseApp.configure()
Your app already done.
Create your config, Enjoy.
Reference
´https://firebase.google.com/docs/remote-config?hl=en
´https://console.firebase.google.com/u/0/project/fcmtestapp-9ce7a/config