ConnectyCube / connectycube-flutter-samples

Code samples for Flutter, based on ConnectyCube platform
https://developers.connectycube.com/flutter/
Apache License 2.0
85 stars 91 forks source link

User Session Times Out and doesn't reconnect #322

Open RushitK opened 9 months ago

RushitK commented 9 months ago

@TatankaConCube Specify the sample to which the issue belongs (use [x]): [x] Chat sample [] P2P Calls sample [] Conference Calls sample

Platform (use [x]) [x] Android [x] iOS [] macOS [] Windows [] Web [] Linux

Device info Manufacture: Apple/Samsung Model: All Modles OS version: Latest OS

Describe the bug:

Steps to Reproduce:

  1. Randomly, user logs out of the chat session (session expires)
  2. When trying to Reconnect, it just goes on and on and nothing happens further.
  3. We are using in the Flutter SDK

Logs: IllegalStateException: Need login to the chat before performing related operations

Actual result: The user logs out and the session cannot be established again. When the App is killed and opened again, it works. But can't kill the app every time an issue pops up.

Expected behaviour: A way to reconnect user session when not working.

Additional info Tried this: https://developers.connectycube.com/flutter/messaging?id=reconnection. This is not working.

Happy to help with any more details, if required.

TatankaConCube commented 9 months ago

we need logs as much as possible to better understand what happens in your app.

Tried this: https://developers.connectycube.com/flutter/messaging?id=reconnection. This is not working.

what it means? do you try CubeChatConnection.instance.relogin(); but nothing happens? could you please provide the full log during perform this action?