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

Launchdarkly useBoolVariation not working in android: {"reason": {"errorKind": "USER_NOT_SPECIFIED", "kind": "ERROR"}, "value": false, "variationIndex": null} #421

Open
vl-kumar opened this issue Apr 3, 2024 · 1 comment
Labels
bug Something isn't working package: sdk/react-native Issues that affect the react native SDK. waiting for feedback Indicates LaunchDarkly is waiting for customer feedback before issue is closed due to staleness.

Comments

@vl-kumar
Copy link

vl-kumar commented Apr 3, 2024

Describe the bug
I am using Launchdarkly version 10.0.0. While I am trying to get boolean value via useBoolVariation from Launchdarkly but is working only in iOS. For android I am always getting false value
In Android useBoolVariation not working to check the full details I used useBoolVariationDetail it's returning this error
{"reason": {"errorKind": "USER_NOT_SPECIFIED", "kind": "ERROR"}, "value": false, "variationIndex": null}

Expected behavior
useBoolVariation has to return correct value what we configured in launchdarkly in android and ios.

SDK version
10.0.0

Language version, developer tools
React Native - 0.72.6

OS/platform
Android

@vl-kumar vl-kumar added bug Something isn't working package: shared/sdk-server Label for issues affecting the shared/sdk-server package. labels Apr 3, 2024
@yusinto
Copy link
Contributor

yusinto commented Apr 3, 2024

It sounds like the ldContext is not set when useBoolVariationDetail is called. Please check:

  • Make sure you call identify with a valid context before using any of the variation hooks.
  • Make sure you await that identify call.

If those does not help, please follow these steps so we can investigate this further:

  • Please try running the example app and ensure you can run that correctly.
  • Please turn debug on and post the logs. See the example app on how to do this.
  • Please supply the code demonstrating the client initialization and provider usage, as well as the identify and variation calls.

@yusinto yusinto added the waiting for feedback Indicates LaunchDarkly is waiting for customer feedback before issue is closed due to staleness. label Apr 3, 2024
@kinyoklion kinyoklion added package: sdk/react-native Issues that affect the react native SDK. and removed package: shared/sdk-server Label for issues affecting the shared/sdk-server package. labels Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working package: sdk/react-native Issues that affect the react native SDK. waiting for feedback Indicates LaunchDarkly is waiting for customer feedback before issue is closed due to staleness.
Projects
None yet
Development

No branches or pull requests

3 participants