launchdarkly / react-native-client-sdk

LaunchDarkly Client-side SDK for React Native
Other
47 stars 32 forks source link

identify promise never resolves with sdk v10 on android #248

Closed joeyhotz closed 7 months ago

joeyhotz commented 7 months ago

Describe the bug The v10 client does not work on android with expo 50. When I try to identify a user, the promise never resolves.

To reproduce Try to identify a user using an android device

Expected behavior The identify function resolves.

Logs After a while, this logs to the console: LOG info: [LaunchDarkly] Closed LaunchDarkly stream connection

SDK version "@launchdarkly/react-native-client-sdk": "^10.0.0",

Language version, developer tools

    "expo": "^50.0.6",
    "react-native": "^0.73.4",

OS/platform Android 14

Additional context I believe the issue may relate to this: https://github.com/launchdarkly/react-native-client-sdk/issues/236 It was thought v10 would fix the issue however this doesn't seem to be the case.

louis-launchdarkly commented 7 months ago

Hello @joeyhotz - are you trying to do this in development or a release build? There is a known Flipper issue with Android development documented here: https://github.com/launchdarkly/js-core/issues/375

And given React Native is going to remove Flipper, LaunchDarkly will wait for React Native to fix this. If this happens to your release build, please provide more information by either reach out to LaunchDarkly's support team or create an issue in https://github.com/launchdarkly/js-core

kamaldeepj commented 5 months ago

Hi @louis-launchdarkly I think it might be worth mentioning this in the documentation. Took me a lot of time personally to land in this GitHub issue to know that I'm not doing something wrong in my setup.