IOS Cometchat Issues

Hi team i have two questions

  1. If I logged in and click on new user list Then I select any one user to chat with him but unfortunately I go back to conversation list.So , on that case those user which I search for chat from contact list should be see in cometchat Conversations list.
    I read docs for iOS and download demo as well but could not find the solution.

  2. I got other user’s status online/offline , but I want if a user is off line then it should be show that how much time before he was online.For example:- “last seen 5 min ago”.So , basically I need lsat seen of the user.

Please give me above question’s answer properly.I have all demo files of CometChat.
If you have any doubt , please let me know.

Hello,

Here are comments to your queries:

  1. If I logged in and click on new user list Then I select any one user to chat with him but unfortunately I go back to conversation list.So , on that case those user which I search for chat from contact list should be see in cometchat Conversations list.

- If the user doesn’t have any messages then it won’t show in the conversation list. So, if you want to display it in the conversation list then you need to send one message so the that user will be shown in the conversation list.

  1. I got other user’s status online/offline , but I want if a user is off line then it should be show that how much time before he was online.For example:- “last seen 5 min ago”.So , basically I need lsat seen of the user.

- For Last seen, each user object contains field as LastActiveAt, it will provide a timestamp by using it you’ll be able to achieve the last seen functionality.

Regards,
Pushpsen R. Airekar

1.) How do we resolve this? If both users have no conversation, on the chats page its not showing. How will user be able to talk with this user? We managed to achieve this in APK and web but not on IOS. please advise as it’s a huge bug for us.

Can someone please respond as this bug is hampering the functionality of our app @pushpsen.airekar @mayur.bhandari

Is there any solution to this bug?

Hello @flipspot,

Please let me know how you’ve achieved this in android and web. Also, are you using groups for one-on-one conversations as well?
If you’re using groups then in CometChatCoversationList you need to remove the check for lastMessage != nil so that created group will be shown in converasations just like android and iOS.
Let me know if I misunderstood the query.

Regards,
Pushpsen R. Airekar

Hello @flipspot

Hope you found this helpful.
Please feel free to create a new ticket or reach out to us at help@cometchat.com for more information or if you have any more queries.

Thank you.

Regards,
Aishwarya

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.