Practical Examples of Conditional Delivery
Example 1: Personalized Welcome Message
Let’s create a condition to deliver a personalized welcome message to users based on their language preference.
Create Condition: In the Firebase console, create a condition for users who prefer Spanish.
- Condition Name: Spanish Users
- Condition: Language equals Spanish
Assign Parameter Values:
- Parameter: welcome_message
- Default Value: Welcome to our app!
- Condition (Spanish Users): ¡Bienvenido a nuestra aplicación!
Example 2: Feature Toggle Based on App Version
Suppose we want to roll out a new feature only to users who have updated to the latest version of your app.
Create Condition: In the Firebase console, create a condition for users with the latest app version.
- Condition Name: Latest App Version
- Condition: App version equals 2.0.0
Assign Parameter Values:
- Parameter: feature_enabled
- Default Value: false
- Condition (Latest App Version): true
Example 3: Promotional Offer for a Specific Country
we want to offer a discount to users in Canada.
Create Condition: In the Firebase console, create a condition for users in Canada.
- Condition Name: Users in Canada
- Condition: Country equals Canada
Assign Parameter Values:
- Parameter: promo_message
- Default Value: Enjoy our app!
- Condition (Users in Canada): Get 20% off!
Configure Conditional Delivery in Firebase
Firebase offers a powerful tools for app development, one of which is the ability to configure conditional delivery through Firebase Remote Config. This feature allows us to deliver different configurations and content to different segments of our user base and provide a more personalized user experience.
In this article, we’ll explore the concept of conditional delivery, its benefits and how to set it up in Firebase with practical examples and outputs.
Contact Us