-
Notifications
You must be signed in to change notification settings - Fork 898
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
FR: Support for targeting user properties in real time with Remote Config (parity with iOS & Android SDKs) #8662
FR: Support for targeting user properties in real time with Remote Config (parity with iOS & Android SDKs) #8662
Comments
We did find that remote config firebase API request is different on web vs Mobile. Mobile in the request for remote config firebase API request appends the user properties in the body in this format I would think that it would require caching the user properties and sending it via the request. Also if there is any other work arounds you can suggest for web let us know. If we could somehow manually call this route or append params to the body easily that would be helpful. |
For anyone else who runs into this issue, I've forked the
Then when you run or build your project, it should use our forked version of |
Operating System
MacOS
Environment (if applicable)
Any browser
Firebase SDK Version
10.9.0
Firebase SDK Product(s)
Analytics, Remote-Config
Project Tooling
Elm app
Detailed Problem Description
Our app has mobile clients on iOS and Android which use
firebase-ios-sdk
andfirebase-android-sdk
for feature flagging. The way feature flagging works on those platforms is:app.userProperty['some_prop'].exactlyMatches(['some_value'])
)minimumFetchInterval
of0
and activate to get the updated values specific to that userWe recently implemented a web app that uses the
firebase-js-sdk
and realized that this approach to feature flagging is not supported on Web because there's a delay between setting the user property and seeing the correct Remote Config value for that user property in the response fromgetValue
.This has been reported as a bug a few times already:
The response to the bug reports has been that this is expected behavior, and it is noted in the documentation that the JS SDK differs from the mobile SDKs on this. (I think that's what this is saying:
?)
I'm submitting this as a feature request in case there's any plan of supporting this functionality in the web/JS SDK.
Steps and code to reproduce issue
See the repro steps here and here:
foo
)app.userProperty['foo'].exactlyMatches(['bar'])
) and a string parameterbaz
that branches on that condition to return values'foo is bar'
when the condition is true,'default value'
as defaultremoteConfig.settings.minimumFetchIntervalMillis = 0
setUserProperty(analytics, { foo: 'bar' })
)fetchAndActivate(remoteConfig)
)false
indicating the config did not activate despite new user propertygetValue(remoteConfig, 'baz')
'default value'
The text was updated successfully, but these errors were encountered: