[RemoteConfig] How do I get a parameter that has a user id condition? #7247
Answered
by
gaburielcasado
gaburielcasado
asked this question in
Q&A
-
I cannot get my condition to pass. Here's what I'm doing: 1 - Created an audience: 2 - Created a condition that checks if user belongs in the audience (foobar) 3 - The code: // Log in...
await Firebase.initializeApp();
await firebaseAnalytics.setUserId('4742'); // FirebaseAnalytics instance
await remoteConfig.setConfigSettings(RemoteConfigSettings(
fetchTimeout: Duration(seconds: 10),
minimumFetchInterval: Duration(),
));
await remoteConfig.setDefaults(<String, dynamic>{
'enable_fun': false,
});
await remoteConfig.fetchAndActivate();
print(remoteConfig.getBool('enable_fun')); // prints false I always get Thank you thank you :) |
Beta Was this translation helpful? Give feedback.
Answered by
gaburielcasado
Nov 1, 2021
Replies: 1 comment
-
Discussions appears to be inactive. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gaburielcasado
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Discussions appears to be inactive.
Created an issue here: #7281