Skip to content
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

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants