Skip to content

Streaming not working on react-native android even with Flipper removed #405

@dan-trewin

Description

@dan-trewin

Describe the bug

Even with Flipper completely removed from our react-native project (as bullet point 4 describes here: https://github.com/launchdarkly/js-core/tree/main/packages/sdk/react-native#known-android-identify-issue), streaming still doesn't seem to be working properly for Android. The app doesn't hang on identify and initial flags are retrieved so thats good. But any changes to the LD flags through our dashboard are not being reflected live in the Android app as they should. The streaming is working as expected on iOS.

To reproduce

I have tried using the exact code from the quickstart section: https://github.com/launchdarkly/js-core/tree/main/packages/sdk/react-native#quickstart and the streaming changes are reflected live on iOS but not on android.

I think this issue should be quickly apparent, but please let me know if you need any more reproduction details!

Expected behavior

Updating the flags on the LD dashboard should immediately be reflected in the Android app like they are on iOS

Logs

On Android on app startup:

info: [LaunchDarkly] Opened LaunchDarkly stream connection
info: [LaunchDarkly] Will retry stream connection in 915 milliseconds

For comparison on iOS on app startup:
Note: there is no line about retrying the streaming connection in x milliseconds

info: [LaunchDarkly] Opened LaunchDarkly stream connection

SDK version

"@launchdarkly/react-native-client-sdk": "^10.0.3"

Language version, developer tools

Not expo, just base "react-native": "0.72.12"

OS/platform

Tested on Pixel 7 Emulator and Physical Device
Android 14

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpackage: sdk/react-nativeIssues that affect the react native SDK.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions