You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm integrating the latest version of the SDK (4.5.0) to our project (Xcode 11.4), and I spot one huge problem with the following setup:
// Called somewhere when app started
let key = "MY_MOBILE_KEY"
var config = LDConfig(mobileKey: key)
config.streamingMode = .streaming
LDClient.shared.startCompleteWhenFlagsReceived(config: config) {
Log.debug("[ThirdParty] LaunchDarkly initialized")
}
// ... and after user logs in (or polling current user session)
let user = LDUser(key: user.userId,
email: user.email)
LDClient.shared.identify(user: user) {
Log.debug("[LaunchDarkly] User updated")
}
So, when I set streamingMode to .streaming completion closure from identify method is never called. Also I can't check any features/variations - they all return fallback immediately.
It works fine when I switch streamingMode to .polling.
The text was updated successfully, but these errors were encountered:
mmiedlarz
changed the title
identify completion handler not called when using SDK with .streaming streaming mode
"identify" completion handler not called when using SDK with .streaming streaming mode
Mar 27, 2020
Thanks for reaching out. We'd like to request that you reach out to our support team at [email protected] for further assistance on this issue. We believe that this issue is more likely to be due to a configuration issue rather than a bug in the SDK.
Some further areas of investigation on your support ticket might include:
Did this issue happen in prior SDK versions before updating to 4.5.0 today?
Does this issue happen when you don't set config.streamingMode at all (and use the default value which is also streaming?
Does this issue happen when you pass user in as the second parameter to `startCompleteWhenFlagsReceived?
We recommend providing as much of that information as possible when filing the support request.
* Adding a new Circle CI test case for the newer Xcode 13.3.1 (#205)
* Add the new build and see what happens
* Use the available simulator
* Add tombstone support (#209)
Prior to this commit, when a flag was deleted, it was actually removed
from memory. This allows for the (admittedly unlikely) situation where
an older version of a flag update would be received after this deletion,
causing the flag to become "undeleted".
By managing a light-weight placeholder, the tombstone ensures we do not
allow dead flags to resurrect unless directed to by a later version of
the flag.
* Fix missing merge issues
Co-authored-by: Louis Chan <[email protected]>
Hey!
I'm integrating the latest version of the SDK (4.5.0) to our project (Xcode 11.4), and I spot one huge problem with the following setup:
So, when I set
streamingMode
to.streaming
completion closure fromidentify
method is never called. Also I can't check any features/variations - they all return fallback immediately.It works fine when I switch
streamingMode
to.polling
.The text was updated successfully, but these errors were encountered: