Reputation: 41
I've configured firebase ab-testing. Everything works fine except there is no impact user on console.
Actually, I can see UI and log show ab-testing is applied. Moreover, by checking the other StackoverFlow topic, activateFetched also invoked after fetch successfully.
Moreover, I've referenced
But those are no work on my case. Is there anything miss or any other need to check so that client can response AB testing result to firebase console.
Thanks for your help first.
Code snippet:
[FIRApp configure];
FIRRemoteConfigSettings* configSettings = [[remoteConfig configSettings] initWithDeveloperModeEnabled:YES];
[[FIRRemoteConfig remoteConfig] setConfigSettings:configSettings];
[[FIRRemoteConfig remoteConfig] fetchWithExpirationDuration:duration completionHandler:^(FIRRemoteConfigFetchStatus status, NSError *error) {
if (status == FIRRemoteConfigFetchStatusSuccess) {
BOOL configFound = [[FIRRemoteConfig remoteConfig] activateFetched];
Upvotes: 4
Views: 2744
Reputation: 31
Please call the functions in the following order:
fetch()
activatefetched()
in the completion handler of fetch()
.activatefetched()
, add a time delay of a few seconds. This is because activatefetched()
process asynchronously and hence the function may not execute completely, before the activation event is fired.Once done, test a running experiment on test device. In the debug logs search with string "exp_X" where 'X' is the experiment Id. You will find the experiment Id in the URL of the experiment. If you find the experiment ID in the debug logs while executing the code on test device, it means the device was covered in experiment. Also if the experiment setup is correct, the running experiment will show 1 active experiment user in the console.
Upvotes: 1
Reputation: 342
A couple things to check or take note of:
Upvotes: 1