firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.66k stars 1.49k forks source link

Remote Config won't return the correct values based on a set user property value #7648

Open zeusent opened 3 years ago

zeusent commented 3 years ago

Step 0: Are you in the right place?

[REQUIRED] Step 1: Describe your environment

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

If I update Firebase to any version bigger than 7.1.0 then RemoteConfig stops working as expected. My app uses an user property value to grab different values from RemoteConfig.

With any version bigger than 7.1.0 this user property value is ignored and RemoteConfig always returns the same values no matter what. Whenever I rollback to 7.1.0 then everything works as expected.

If I look in the analytics debug view I can see my user property being set correctly.

Relevant Code:

On app start, before grabbing any RemoteConfig values I do this:

Analytics.setUserProperty("dummy_value", forName: "dummy_property")

Immediately after that I call fetchAndActivate. This works as expected on 7.1.0 but fails on any newer versions.

google-oss-bot commented 3 years ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

paulb777 commented 3 years ago

@zeusent Sorry about the trouble and thanks for the report and narrowing down the version.

@karenyz Please take a look. I suspect a regression related to #6692.

jklein24 commented 2 years ago

Hi folks, I believe this is affecting us still. Was there any progress here?

paulb777 commented 2 years ago

Sorry about the slow response here. Can you share a reproducible example?

jklein24 commented 2 years ago

So It's been a bit unreliable and tricky to reproduce, but what we're seeing is essentially the following setup is inconsistent:

To make it more concrete with an example:

For some reason, we still have users with prop1 true who are getting paramA set to false.