Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

The flag listeners are not called on iOS after context update #258

Open
nazmeln opened this issue Mar 15, 2024 · 1 comment
Open

The flag listeners are not called on iOS after context update #258

nazmeln opened this issue Mar 15, 2024 · 1 comment

Comments

@nazmeln
Copy link

nazmeln commented Mar 15, 2024

Is this a support request?
This issue tracker is maintained by LaunchDarkly SDK developers and is intended for feedback on the SDK code. If you're not sure whether the problem you are having is specifically related to the SDK, or to the LaunchDarkly service overall, it may be more appropriate to contact the LaunchDarkly support team; they can help to investigate the problem and will consult the SDK team if necessary. You can submit a support request by going here or by emailing [email protected].

Note that issues filed on this issue tracker are publicly accessible. Do not provide any private account information on your issues. If your problem is specific to your account, you should submit a support request as described above.

Describe the bug
The flag listener is not called when the context is updated on iOS, Android works fine.

To reproduce

  • Create flag
  • Enable this flag for specific user context
  • Get flag value using flag listeners
  • Update user context using identify
  • Check if the listener is called after the context is updated and the flag changed its value

Expected behaviour
The flag listeners are called on iOS after the context is updated

Logs
If applicable, add any log output related to your problem.

SDK version
8.0.2. However, it's applicable for v9 too.

OS/platform
iOS

@louis-launchdarkly
Copy link
Contributor

Hello @nazmeln, thank you for reporting this. We think that is a bug in the underlying iOS SDK code and are looking for a fix. We will update this when we have a fix. Filed internally as 236797.

In case you don't want to wait and can upgrade, we recommend upgrading to the RN 10.x SDK written in pure JS, which does not have this class of Android/iOS diverged issue. https://github.com/launchdarkly/js-core/tree/main/packages/sdk/react-native

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants