Skip to content

Remote Config Parameters with Conditions are Inconsistent and Often Incorrect #3230

Closed
@ewebfinity

Description

@ewebfinity

Describe your environment

  • Operating System version: macOS 10.14.6 (18G5033) (Mojave)
  • Browser version: Google Chrome (83.0.4103.106 (Official Build) (64-bit))
  • Firebase SDK version: 7.15.1
  • Firebase Product: remote-config, analytics

Describe the problem

When remote config parameters values are determined by a condition on a user property, the parameter values returned are incorrect or inconsistent. Sometimes they are correct and other times they are wrong. Once they are wrong they appear to get "stuck" in that incorrect state. No amount of refreshing or fetching will get them unstuck.

Steps to reproduce:

Note: jsbin contains fully working sample with playground firebase project

  1. Create a user property called "testing_group"
  2. Create a remote config parameter called "showDebugInfo" and make it's default to false
  3. Create a condition on that parameter with the following condition:
    "testing_group" "contains regex" ".+"
    OR if you like:
    "testing_group" "contains" "dev"
  4. In javascript, send up user properties of "testing_group = dev" and retrieve the parameter and it will sometimes be incorrect. It's flaky.

Often times the name of the user property won't even matter. It will return the wrong value.

Relevant Code:

Run this sample.........

Notice: If you get true on your first run and then comment out the code the sends up the user properties and firebase will still return true for that value even though it's conditioned on it being set.

https://jsbin.com/xijolazaka/1/edit?html,console,output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions