我们已经使用 Firebase 远程配置开始了 AB 测试。已经超过 24 小时了,它显示“用户总数:0”,而本应为每个变体分配数万个 DAU。
- 数据输入需要多长时间?
- 有什么方法可以判断它是否正在运行吗?
- 如果它仍然为零,潜在的根本原因是什么?为什么不将人们分配到测试变体?
找到了解决方案。有一些愚蠢的错误,但很容易被忽略,因为远程配置可以正常工作,无需修复它们。
- 确保将 Firebase SDK/pod 升级到 4.5 或更高版本。早期版本具有相同的 API,但不会提供 AB 测试值(仅远程配置值)
- 确保在调用后调用 fetchWithExpirationDuration
FIRApp configure
- Verify a draft AB test is working before shipping to app store. Some tips for doing this:
- 传递 0 表示过期时间
fetchWithExpirationDuration
当处于调试模式时,因此每次都强制获取新值(默认情况下会缓存)。
- 在调试模式下设置远程配置(代码如下)
- Google 关于如何验证的说明:https://firebase.google.com/docs/remote-config/abtest-config#validate_your_experiment_on_a_test_device https://firebase.google.com/docs/remote-config/abtest-config#validate_your_experiment_on_a_test_device
#ifdef DEBUG
FIRRemoteConfigSettings* remoteConfigSettings = [[FIRRemoteConfigSettings alloc] initWithDeveloperModeEnabled:YES];
[FIRRemoteConfig remoteConfig].configSettings = remoteConfigSettings;
#endif
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)