Firebase Push Notification and Remote Config for Android
This shows how to get notifications from Firebase at a faster rate and at no cost. Also to change the look and feel of an app without updating the whole app.
//Get the widget from XML layout ConstraintLayout layout = (ConstraintLayout) findViewById(R.id.layout); TextView textview = (TextView) findViewById(R.id.textView); //Get the values form Firebase remote configuration String welcomeText = firebaseRemoteConfig.getString("welcome_text"); String welcomeTextColor = firebaseRemoteConfig.getString("welcome_text_color"); String layoutColor = firebaseRemoteConfig.getString("bg_color"); // Set the properties from firebase remote configuration // If any value not set in firebase remote configuration then it gets from default set layout.setBackgroundColor(Color.parseColor(layoutColor)); textview.setText(welcomeText); textview.setTextColor(Color.parseColor(welcomeTextColor)); }