calm-dog-24239
02/16/2024, 5:18 PMbrief-honey-45610
02/22/2024, 4:59 PMcalm-dog-24239
02/23/2024, 12:52 PMcalm-dog-24239
02/23/2024, 1:35 PMbrief-honey-45610
02/26/2024, 5:14 PMbright-pharmacist-73946
02/29/2024, 6:51 PMbackgroundSync set to true when configuring the GrowthBookSDK no features are returned. Dropping back to version 1.0.44 (after changing my setup code) everything works as expected.calm-dog-24239
02/29/2024, 7:22 PMcalm-dog-24239
03/01/2024, 4:20 PMcalm-dog-24239
03/05/2024, 4:15 PMbright-pharmacist-73946
03/05/2024, 4:26 PM1.0.46 code updated to use the apiHost and then include the clientKey separately. As I said, it worked briefly when I had backgroundSync enabled.
In terms of the new initializer, that change came as a bit of a surprise and broke our builds when we did the swift package update since the initializer version used in 1.0.44 was completely removed.quaint-lion-98240
03/31/2024, 5:18 AMcalm-dog-24239
04/01/2024, 7:17 AMquaint-lion-98240
04/01/2024, 4:36 PMbrief-honey-45610
04/18/2024, 3:40 PMmost-spoon-61816
04/18/2024, 3:43 PMcalm-dog-24239
04/19/2024, 1:08 PMmammoth-wolf-34989
04/28/2024, 4:28 PMrefreshHandler call back in the GrowthBookBuilder initialiser to listen on changes, whenever it is called i use the isOn function on all my feature keys that i want, but after some minutes in a session, it stops sending call backs in refreshHandler, why is that and is there a way to implement what i need?flaky-noon-11399
09/30/2024, 3:40 PMfancy-winter-56560
10/17/2024, 9:25 AMcreamy-plastic-26432
01/23/2025, 6:10 PMtrackingCallback is never called, and the experiment doesn't work.
The only way I can get it to work is by using the user_uuid attribute. Then the callback is called and the experiment works fine.
I've tried creating many attribute types and seeing if they will match, but none work.
Does anyone have any suggestions on what to do?
if let growthBook = growthBook {
self.growthBook = growthBook
} else {
let builder = GrowthBookBuilder(
apiHost: apiHost,
clientKey: clientKey,
attributes: [
// None of these work
"platform": "tvos", // enum attribute type
"platform_is_tv_tvos": true, // boolean type
"is_tvos": "true" // string type
// If I use the user_uuid experimentation works
// "user_uuid": "3A662C6E-0A43-4BFB-B691-B25D685CD409"
],
trackingCallback: { experiment, result in
print("[Debug] Experiment \(experiment.key) assigned variation \(result.variationId) with result \(result.value)")
}
)
let sdk = builder.initializer()
self.growthBook = GrowthBookSDKWrapper(sdk: sdk)
}strong-mouse-55694
01/23/2025, 6:29 PMuser_uuid). If that's not present, then the experiment can't run and the CB won't fire. You can change what the assignment attribute is (but it should be something unique).flaky-noon-11399
04/16/2025, 11:03 AMlate-ambulance-66508
04/21/2025, 8:36 PM/sub/sdk-* endpoint and the server returns a 401 error:
{
"status": 401,
"message": "No authorization token was found"
}
The SDK was initialized with backgroundSync: true setting.
Now we can do a release without this option, but can you help sort out the problem please?
SDK: 1.0.62
apiHost: apiHost, // we use CloudFlare CDN, but see the same error with GB's CDN
clientKey: clientKey,
encryptionKey: nil,
attributes: attributes,
trackingCallback: { experiment, result in
trackingCallback?(experiment.key, result.variationId)
},
refreshHandler: nil,
backgroundSync: true,
remoteEval: falsebrave-controller-43565
05/22/2025, 1:52 PMsetForcedVariation function, the trackingCallback is called after getting the results of the experimento via forcing the variation?flaky-noon-11399
06/20/2025, 8:31 AMbrief-honey-45610
07/11/2025, 7:30 PMTrue, source = Force
◦ ✅ Android app (Java SDK): value = True
◦ ❌ iOS (Swift SDK): value = False, source = cyclicPrerequisite
The cyclicPrerequisite source in GrowthBook means a cycle was detected in feature prerequisites (i.e., a feature depending on itself). Evaluation is halted to avoid infinite loops. However, no prerequisites were defined in this setup. This source value was unexpected and only appeared in the Swift SDK.
Can you investigate why the Swift SDK is returning cyclicPrerequisite for a client feature flag that:
• Has no prerequisites
• Is correctly forced to a test value via Force Rules
• Returns the correct result in other SDKs (Python, Java)?
Thanks!flaky-noon-11399
07/21/2025, 9:36 AMflaky-noon-11399
08/26/2025, 7:57 AMflaky-noon-11399
09/03/2025, 2:02 PMstrong-mouse-55694
10/07/2025, 4:30 PMbackgroundSync setting does seem to trigger the refreshHandler, however subsequent checks of the feature flag show that the flag hasnt been updated. Details have been logged here. Any help you can give us would be greatly appreciated
Thread in Slack Conversation