Firebase AB Test has 0 users
Asked Answered
Y

1

7

We've started an AB test using Firebase remote config. It's been over 24 hours, and it's showing "Total Users: 0" when there should have been tens of thousands of DAUs assigned to each variant.

  • how long does it take for data to come in?
  • is there any way to tell if it's running?
  • If it remains at zero, what are the potential root causes? Why are people not being assigned to test variants?
Yl answered 21/2, 2018 at 21:1 Comment(2)
What happens when you follow the steps to validate your experiment on a test device? Are you able to receive different variants on a test device?Quarterstaff
@Quarterstaff nope! I get all the remote configs, including new ones I add. However, I never get the value from the AB test.Yl
Y
5

Found the solution. A few dumb mistakes, but they are easy to miss because the remote config works fine without fixing them.

  • Ensure you upgrade Firebase SDK/pod to 4.5 or later. Earlier versions have an identical API but won't serve AB tests values (only remote config values)
  • Ensure you call fetchWithExpirationDuration AFTER you call FIRApp configure
  • Verify a draft AB test is working before shipping to app store. Some tips for doing this:
#ifdef DEBUG
    FIRRemoteConfigSettings* remoteConfigSettings = [[FIRRemoteConfigSettings alloc] initWithDeveloperModeEnabled:YES];
    [FIRRemoteConfig remoteConfig].configSettings = remoteConfigSettings;
#endif
Yl answered 22/2, 2018 at 17:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.