twilio / conversations-ios

SPM releases
https://www.twilio.com/docs/conversations/ios/changelog
10 stars 5 forks source link

Bug: synchronizationStatusUpdated Callback Stops Working Until Client Reconnection #59

Open kuchmiyalex opened 3 months ago

kuchmiyalex commented 3 months ago

SDK version

4.0.3

Device model

iPhone 14 Pro Max

OS version

17.4

Issue description

Title: iOS App Not Receiving Synchronization Status Updates for Twilio Conversations

Description:

Issue Overview

After launching the iOS app and establishing connection with TwilioClient, the app correctly receives synchronization status updates for conversations when in the foreground. However, upon transitioning to the background and making changes in conversations, the app fails to receive synchronization status updates for some conversations upon returning to the foreground. This occurs even for conversations in which the user is actively participating.

Reproduction Steps

  1. Launch the iOS app.
  2. Connect to TwilioClient.
  3. Transition the app to the background.
  4. Make changes in conversations (e.g., adding or removing conversations).
  5. Bring the app back to the foreground.
  6. Observe that some conversations do not receive synchronization status updates.

Expected Behavior

The app should consistently receive synchronization status updates for all conversations, even after transitioning between the background and foreground.

Current Behavior

After returning to the foreground, some conversations fail to trigger the synchronizationStatusUpdated callback, resulting in missing updates for those conversations. During this time, it is not possible to fetch messages or send new messages within the affected conversations.

Additional Information

kuchmiyalex commented 2 months ago

@berkus hey is that something that you might check? Do you need any additional debug info which I can provide? At this point, the solution was to decrease the number of active conversations the user participates in, to around 100-150. That solved the problem in 90% cases.

berkus commented 1 month ago

@kuchmiyalex not really, I'm not in Twilio anymore, but @AlejandroOrozco should be able to assist.