Skip to content
This repository has been 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 opened this issue Apr 30, 2019 · 0 comments
Open

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

johanquiroga opened this issue Apr 30, 2019 · 0 comments

Comments

@johanquiroga
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants