cool-apple-97384
03/17/2023, 4:11 AMunknownFeature
, please see image attached. We have declared the feature on our dashboard with defaultValue. I think, growthbook should return defaultValue.gifted-cat-24658
03/17/2023, 6:36 AMcool-apple-97384
03/17/2023, 6:38 AMGet.put<GrowthBook>(
GrowthBook(
apiHost: 'OUR_API_HOST',
apiKey: growthBookApiKey,
isQAMode: kDebugMode,
attributes: {
Constant.idAttribute: userId,
},
trackingCallback: (experiment, result) {
DigiproTrackerUtil.growthBookTracking(
tracker: Get.find<TrackAvo>(),
experiment: experiment,
result: result,
);
},
),
permanent: true,
);
gifted-cat-24658
03/17/2023, 7:05 AMawait
key word before calling gb.refresh()
.
Can you prefer this, to make sure you have latest set of the feature in SDK.cool-apple-97384
03/17/2023, 7:21 AMgifted-cat-24658
03/20/2023, 11:25 AMrefresh
in your main, and you should await for that so get all features before other app services starts so you can use that.
Let us know it solves your problem. If it doesn’t then we are waiting for your issue on gb repo with code of conduct.
Thanks.cool-apple-97384
03/20/2023, 11:30 AMgifted-cat-24658
03/20/2023, 11:33 AMawait
keyword before GBSDKBuilderApp
.
gb = await GBSDKBuilderApp(
apiKey: kReleaseMode ? '<PROD_KEY>' : '<DEV_KEY>',
hostURL: '<HOST_URL>',
attributes: userAttr,
growthBookTrackingCallBack: (exp, rst) {},
).initialize();
Would work as aspected.cool-apple-97384
03/20/2023, 11:36 AMgifted-cat-24658
03/20/2023, 11:37 AMcool-apple-97384
03/20/2023, 11:38 AMgifted-cat-24658
03/22/2023, 6:28 AMcool-apple-97384
03/22/2023, 9:04 AM