-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Flag value is not being fetched on first time #397
Comments
FYI, same behaviour is being observed in sample ios app provided by launch darkly for sdk version 6.0, i updated that sdk with my LD key and required config and same behaviour was observed. |
Hi @mohsinbmwm3. At the moment, the symptoms you've described don't indicate a bug, but perhaps I'm mistaken. Do you wait for the completion callback before evaluating flags? If you do not and you make a flag evaluation before the SDK has an opportunity to communicate with the LaunchDarkly services, the SDK will perform the evaluation using cached data from the last time it was connected to the LaunchDarkly services (in most cases this is the last app run). Options are to wait for the completion (see code below) or to set up a flag listener and make your code reactive.
If I'm mistaken and this is a deeper issue, is this a new behavior? Could it be the case that it wasn't noticed until now? A reminder that the 6.X version was EOL as of 2023-10-12 and we recommend updating to the latest SDK version. |
@mohsinbmwm3, did my previous comment help clarify or is the issue something else? |
Hi again @mohsinbmwm3 , we haven't heard back for a few weeks and will likely close this issue within the next week due to inactivity. Please let us know! |
Describe the bug
iOS LD SDK is not able to fetch boolean value on launching app, we have to launch app second time to fetch current value.
To reproduce
One more observation(here we are not killing ios app while changing values in LD portal):
Expected behavior
When we update value in LD portal, ios SDK should automatically fetch or point to that updated value.
Library version
pod 'LaunchDarkly', '~> 6.0'
XCode and Swift version
Xcode Version 15.2, Swift 5.0
Platform the issue occurs on
iPhone
Additional context
I have configured a bool Feature flag, also made available to mobile. Also same ff is being fetched properly in android, not just in ios somehow it is fetching value in second launch of the app
Code
The text was updated successfully, but these errors were encountered: