Reputation: 9561
I could get the Firebase remote config parameter from my app using below code.
FirebaseApp.initializeApp(getContext());
firebaseRemoteConfig = FirebaseRemoteConfig.getInstance();
FirebaseRemoteConfigSettings configSettings = new FirebaseRemoteConfigSettings.Builder().build();
firebaseRemoteConfig.setConfigSettings(configSettings);
Map<String, Object> defaultSettings = new HashMap();
firebaseRemoteConfig.setDefaults(defaultSettings);
firebaseRemoteConfig.fetch(0)
.addOnCompleteListener(new OnCompleteListener<Void>() {
@Override
public void onComplete(Task<Void> task) {
// Doing my app activities
}
});
Is there a way to set/modify the parameter from Android App ??
Upvotes: 0
Views: 986
Reputation: 13129
You can't change them from the client side, the purpose of Remote Config is to fetch data from the service and update your UI or services accordingly to them.
You can use Firestore or Firebase Realtime Database if you need to set values and request them.
Upvotes: 3