launchdarkly / js-core

LaunchDarkly monorepo for JavaScript SDKs
Other
12 stars 12 forks source link

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

Open vl-kumar opened 3 months ago

vl-kumar commented 3 months ago

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

yusinto commented 3 months ago

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

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