Firebase Remote Config & A/B Testing with real time updates

2.5k views Asked by At

I've implemented real time remote config updates via the documentation here.

In general, it works as expected, except when it comes to experiments via A/B Testing. Changes to A/B Testing that affect remote config do not fire the update cloud function hook.

Does anyone know if its possible to have the functions.remoteConfig.onUpdate cloud function hook trigger when a change to remote config is made via an A/B Testing experiment change?

The only workaround I can think of is to have a dummy value in remote config itself that I change whenever an experiment is created/updated.

1

There are 1 answers

5
Frank van Puffelen On

firebaser here

There is nothing built into Remote Config for that at the moment. But thanks to the integration between Cloud Functions and Remote Config, you can build it yourself.

One of our engineers actually just gave a demo for this last week. I recommend you check it out here: https://youtu.be/lIzQJC21uus?t=3351.

In this demo, there are a few steps:

  1. You publish a change from the Remote Config console.
  2. This change triggers Cloud Functions through a functions.remoteConfig.onUpdate event.
  3. The Cloud Function sends an FCM message to all apps through a topic.
  4. When an app receives this message, it shows a prompt that the configuration is out of date.
  5. When the user clicks the "fetch" button, the app fetches the new configuration data from Remote Config.