Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase A/B test regex for iOS app version not working

I am trying to limit my A/B test to the versions of my iOS app starting from 11.3.10. The reason is that older versions would behave identically for all variants as they contain no knowledge of parameters involved. This, in turn, would introduce noise which would make my experiment less conclusive.

So, I was adding the following regex to my app version property:

1[1-9]\.[3-9]\.[1-9][0-9]

Unfortunately, it didn't work. No users were taking part in my experiment. I then decided to try 1[1-9]\.[3-9]\.[1-9][0-9].*. But still, no luck. If I omit this setting and run my experiment, I immediately see the data for users taking part in it. 138 in 30 minutes to be precise.

My latest version (11.3.10) has roughly 30% adoption, so clearly I would see some users if the setting was correct.

I will be grateful if you could let me know what I am doing wrong here.

like image 625
Andriy Gordiychuk Avatar asked Dec 14 '22 10:12

Andriy Gordiychuk


1 Answers

I got in touch with Firebase support and figured out what was wrong.

Although their docs mention "Version" everywhere (https://firebase.google.com/docs/ab-testing/abtest-config), the reality is that they are looking for Build Number instead. So, in my case, I needed to target all "versions" greater than 379 rather than all "versions" greater than 11.3.11.

If anyone is curious, here is a regex which achieves that:

(\d{4,}|379|3[8-9][0-9]|[4-9][0-9][0-9])

like image 74
Andriy Gordiychuk Avatar answered Jan 07 '23 00:01

Andriy Gordiychuk