React Native Firebase AB-testing not showing correct data

236 views
Skip to first unread message

Daniel Tovesson

unread,
Jul 5, 2021, 7:49:23 AM7/5/21
to Firebase Google Group

We are struggling with a weird issue trying to implement AB-testing for React Native. Remote Config seems to work fine but in the AB-testing panel we don't see any data, we just get active users within the last 30 mins sometimes but it's quite infrequent. We did get one user exposed on Android but that just happened once. We are trying to deinstall the app and install it multiple times. Any ideas of what it can be? Posting some screenshots from the Firebase console as well as our code:

await remoteConfig().setDefaults({
  is_forum_first_tab: 'no',
});
await remoteConfig().fetchAndActivate();
await remoteConfig().setConfigSettings({
  isDeveloperModeEnabled: true,
  minimumFetchInterval: 0,
});
const isForumFirstTab = remoteConfig().getValue('is_forum_first_tab');
const { navigation } = this.props;
if (isForumFirstTab.asBoolean()) {
  navigation.navigate('AppV2');
} else {
  navigation.navigate('App');
}

"@react-native-firebase/analytics": "^10.6.0",
"@react-native-firebase/app": "^10.6.0",
"@react-native-firebase/auth": "^10.6.0",
"@react-native-firebase/crashlytics": "^10.6.0",
"@react-native-firebase/iid": "^10.6.0",
"@react-native-firebase/remote-config": "^10.6.0",

Screenshot 2021-07-05 at 11.47.56.pngScreenshot 2021-07-05 at 11.48.08.png

Arthur Thompson

unread,
Jul 12, 2021, 11:54:05 AM7/12/21
to Firebase Google Group
Hi,

Since RC is working fine then it is likely not a React Native Firebase issue.

I'm wondering how you are defining the users that are selected for the experiment also have you tried using the app's Installation ID as an explicit target?

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/000e3d22-d80d-43b1-a939-2262794364b0n%40googlegroups.com.

Daniel Tovesson

unread,
Jul 27, 2021, 1:02:19 PM7/27/21
to Firebase Google Group
Hi, we realized that the issue was that we disabled analytics for the environment we were in:

await firebase.analytics().setAnalyticsCollectionEnabled(environment === 'production');

So when using production it started working. Thank you for taking the time to reply! 

Reply all
Reply to author
Forward
0 new messages