twilio / conversations-ios

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

When TCHUser offline & online status update delegate method never been called #22

Closed kalebupatan7 closed 8 months ago

kalebupatan7 commented 2 years ago
Screenshot 2022-04-22 at 3 40 23 PM

TCHConversationDelegate has conversationsClient(_ client: TwilioConversationsClient, user: TCHUser, updated: TCHUserUpdate) method.

When ever other TCHUser change his status from offline to online, vice versa. This method has to be called, but it's not being called.

Except this method, remaining all methods are being called in TCHConversationDelegate.

Note: I enabled reachability indicator in Console.

Please let me know why this method is not being called.

Pavel-Cherentsov commented 2 years ago

Hi @kalebupatan7! How do you make TCHUser change his status from online to offline and back? Client re-creation or network disconnection/reconnection?

kalebupatan7 commented 2 years ago

Hi @kalebupatan7! How do you make TCHUser change his status from online to offline and back? Client re-creation or network disconnection/reconnection?

Hi @Pavel-Cherentsov , I made TCHUser change his status from online to offline by shutdown client and from offline to online by re-creation of client.

Pavel-Cherentsov commented 2 years ago

Could you please ensure client is subscribed to TCHUser updates ([user isSubscribed] returns YES) ? Do you get TCHUser by use of subscribedUserWithIdentity:completion: ? Could you maybe provide your code sample?

kalebupatan7 commented 2 years ago

@Pavel-Cherentsov , I checked TCHUser updates ([user isSubscribed] returns YES) Even I get TCHUser by use of subscribedUserWithIdentity:completion: But conversationsClient(_ client: TwilioConversationsClient, user: TCHUser, updated: TCHUserUpdate) method is not calling

berkus commented 8 months ago

Closing, no interactions and versions have been updated since then.