https://www.growthbook.io/ logo
#announcements
Title
# announcements
s

salmon-honey-25093

04/13/2023, 9:39 AM
Hey We have recently integrated Growthbook in our app and used Firebase remote config for feature flags earlier. Is there any way to migrate existing features from Firebase to Growth book Admin ? cc @fresh-football-47124 @future-teacher-7046
f

fresh-football-47124

04/14/2023, 6:39 AM
We don’t have any such script currently- but we do have an API that lets you make features- does Firebase let you export the features?
s

salmon-honey-25093

04/14/2023, 9:58 AM
Yes , Firebase let us download raw features I have downloaded json already , Still finding way to create set of same features on Growthbook Let me know if you guys can help
f

fresh-football-47124

04/14/2023, 1:57 PM
Can you share a sample of what the firebase features look like?
s

salmon-honey-25093

04/17/2023, 9:18 AM
yeah sure here it is
Copy code
{
  "conditions": [
    {
      "name": "android_english",
      "expression": "device.os == 'android' && device.country in ['us', 'uk']",
      "tagColor": "BLUE"
    },
    {
      "name": "tenPercent",
      "expression": "percent <= 10",
      "tagColor": "BROWN"
    }
  ],
  "parameters": {
    "welcome_message": {
      "defaultValue": {
        "value": "Welcome to this sample app"
      },
      "conditionalValues": {
        "tenPercent": {
          "value": "Welcome to this new sample app"
        }
      },
      "description": "The sample app's welcome message"
    },
    "welcome_message_caps": {
      "defaultValue": {
        "value": "false"
      },
      "conditionalValues": {
        "android_english": {
          "value": "true"
        }
      },
      "description": "Whether the welcome message should be displayed in all capital letters."
    }
  }
}
firebase feature Object define a set of conditions, and then defines default values and condition-based parameter (conditional values) values for each parameter. It also adds an optional description for each element; like code comments,
cc @fresh-football-47124
65 Views