twilio / conversations-ios

SPM releases

Home Page:https://www.twilio.com/docs/conversations/ios/changelog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

kalebupatan7 opened this issue · comments

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.

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

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.

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?

@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

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