Closed
Description
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
- Create a user property called "testing_group"
- Create a remote config parameter called "showDebugInfo" and make it's default to false
- Create a condition on that parameter with the following condition:
"testing_group" "contains regex" ".+"
OR if you like:
"testing_group" "contains" "dev" - 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.