Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Error subscribing to a room after re-connecting to internet #163

Open
@johanquiroga

Description

@johanquiroga

I'm experiencing an issue when subscribing to a room, here is the flow I'm testing

  1. Open the app without internet connection: Here I get the expected errors from Chatkit.ChatManager and Chatkit.TokenProvider.
  2. Reconnect the app to internet: Here I turn on again the wifi in my computer so the simulator reconnects and makes a successful connection with Chatkit.ChatManager.
  3. Navigate to a chat: Then I go to a chat and when it's mounted the subscription to chatkit is attempted. Here is where I'm getting the error

image

If I attempt to send a message or fetch older messages it's done with no problems, only the subscription is failing after that flow.

The state of a chat inside roomSubscriptions is this (in case it helps):

image

Here is a link to a video showing the flow Im' describing.

Device: Any iPhone Simulator
OS: iOS 12
@pusher/chatkit-client version: 1.5.0
react-native version: 0.58.6
react version: 16.6.3

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