Skip to content

[🐛] Failed Reconnect After Extended Network Down (≈10s) #2952

@arekkubaczkowski

Description

@arekkubaczkowski

Issue

Description

We’ve observed that the GetStream library fails to reconnect automatically after a network outage lasting around 10 seconds or more. In addition, re-initializing the chat instance—by navigating back to the previous screen and then returning to the chat page—does not resolve the issue. A complete app reboot is required to restore connectivity.

Steps to Reproduce

  1. Simulate Network Down:

    • Disable network connectivity (e.g., via Wi‑Fi toggle).
  2. Extended Network Outage:

    • Keep the network offline for at least 10 seconds.
  3. Restore Network Connection:

    • Re-enable the network connection.
  4. Observe:

    • The connection fails to re-establish automatically.
    • The MessageList component continues to display as if it’s connected, without indicating any disconnection or ongoing reconnection process.
  5. Additional Re-Initialize Chat Instance:

    • Navigate back to the previous screen and then return to the chat page to trigger chat instance re-initialization.
      • A full app reboot is necessary to regain connectivity.
      • The MessageList component continues to display as if it’s connected, without indicating any disconnection or ongoing reconnection.

Steps to reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error
    etc...

Expected behavior

Project Related Information

Customization

Click To Expand

# N/A

Offline support

  • I have enabled offline support.
  • The feature I'm having does not occur when offline support is disabled. (stripe out if not applicable)

Environment

Click To Expand

package.json:

# N/A

react-native info output:

 OUTPUT GOES HERE
  • Platform that you're experiencing the issue on:
    • iOS
    • Android
    • iOS but have not tested behavior on Android
    • Android but have not tested behavior on iOS
    • Both
  • stream-chat-react-native version you're using that has this issue:
    • e.g. 5.4.3
  • Device/Emulator info:
    • I am using a physical device
    • OS version: e.g. Android 10
    • Device/Emulator: e.g. iPhone 11

Additional context

Screenshots

Click To Expand


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions