launchdarkly/react-native-client-sdk

The flag listeners are not called on iOS after context update

Opened this issue · 1 comments

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 support@launchdarkly.com.

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

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