witty-rocket-75751
07/11/2025, 10:24 AMsaveAssignment
and getAssignment
was never called, even if i try to fetch the feature flag repeatedly in single app life cycle.
am i missing something here?
the init code:
void initializeSDK() async {
gb =
await GBSDKBuilderApp(
hostURL: 'myHostUrl',
apiKey: "myApiKey",
attributes: userAttr,
growthBookTrackingCallBack: (trackData) {},
gbFeatures: {'some-feature': GBFeature(defaultValue: true)},
stickyBucketService: LocalStorageStickyBucketService(),
backgroundSync: true,
).initialize();
setState(() {});
}
feature eval code:
gbValue = gb?._feature_('some-feature').value._toString_() ?? '';
witty-rocket-75751
07/11/2025, 10:25 AMadamant-apartment-3711
07/11/2025, 11:21 PMfreezing-postman-69602
07/14/2025, 5:27 PMwitty-rocket-75751
07/15/2025, 5:23 AMwitty-rocket-75751
07/15/2025, 5:26 AMadamant-apartment-3711
07/16/2025, 10:53 AMwitty-rocket-75751
07/16/2025, 10:54 AMI/flutter (24616): ✅ Features refreshed
I/flutter (24616): ✅ GrowthBook SDK initialized
[log] Content saved successfully to: featureCache
[log] Content saved successfully to: featureCache
I/flutter (24616): saved sticky assignment: id||foo_bar && [123, 34, 97, 115, 115, 105, 103, 110, 109, 101, 110, 116, 115, 34, 58, 123, 34, 101, 120, 112, 95, 49, 95, 101, 103, 95, 95, 52, 34, 58, 34, 48, 34, 125, 44, 34, 97, 116, 116, 114, 105, 98, 117, 116, 101, 78, 97, 109, 101, 34, 58, 34, 105, 100, 34, 44, 34, 97, 116, 116, 114, 105, 98, 117, 116, 101, 86, 97, 108, 117, 101, 34, 58, 34, 102, 111, 111, 95, 98, 97, 114, 34, 125]
I/flutter (24616): Tracking: exp_1_eg, value: Control
I/flutter (24616): Feature 'some-feature' evaluated: value=Control, on=true
[log] Content saved successfully to: gbStickyBuckets__id||foo_bar
freezing-postman-69602
07/17/2025, 6:24 PMgetAssignment
call is never being triggered.
thanks for reporting it. we're working on it and let you know when it is ready for testing.