Firebase远程配置-同时进行多个测试

时间:2018-11-30 09:24:42

标签: firebase react-native-firebase firebase-remote-config firebase-ab-testing

我试图弄清楚使用firebase(react-native-firebase)时如何同时运行多个A / B测试。

只运行一个就可以了:

       firebase.config().fetch()
        .then(() => {
            return firebase.config().activateFetched();
        })
        .then((activated) => {
            if (!activated) console.log('Fetched data not activated');
            return firebase.config().getValue('featureName');
        })
        .then((snapshot) => {
            const experimentalFeature = snapshot.val();
            console.log('experimentalFeature: ', experimentalFeature);
        })
        .catch(console.error);

但是,一旦我尝试设置多个测试并从其他测试之一中获取值,我什么都找不到(仅从test6中获取值)。

enter image description here 我尝试使用getKeysByPrefix查看所有值,但它仅显示第一个测试(test6)中的值。无论如何,是否可以同时运行多个测试?还是我会以错误的方式进行操作?

0 个答案:

没有答案
相关问题