Skip to content

mobileAppVersion not respected on boundary gating conditions #62

@maxmiranda

Description

@maxmiranda

Running version 3.9.10 of the growthbook_sdk_flutter.

We ran an experiment recently. Both the experiment & the feature flag had defined rules gating any user from viewing the experiment if they had an App Version < 1.18.1.

Experiment:
Image

Feature Flag Rule:
Image

The mobileAppVersion is set upon app initialization as follows:

final version = (await PackageInfo.fromPlatform()).version;
final growthBookBuilder = GBSDKBuilderApp(
  apiKey: growthbookKey(),
  hostURL: 'https://cdn.growthbook.io/',
  attributes: {
    if (user?.id != null) 'id': '${user!.id}',
    if (user?.email != null) 'email': user!.email,
    if (user?.createdAt != null) 'createdAt': user!.createdAt,
    'mobileAppVersion': version,
    'platform': platform,
  },
  growthBookTrackingCallBack: (trackingCallback) {
    ...
});
final growthBook = await growthBookBuilder.initialize();

Yet, somehow, these rules were not respected within Growthbook because we saw ultimately ~2000+ users still seeing the experiment.

Image

Of those users, 27% were set to the non-Control Variant.
Image

Being able to gate feature flags by version I believe is table stakes for an A/B Testing provider. Can someone please help us triage and figure out how this could've happened?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions