Get conversation list using Sinch API & iOS SDK - ios

I have to develop a messaging app and I came across this Sinch messaging SDK. I had downloaded the iOS SDK and tried the Sinch Instant Messaging sample app. I was able to send messages and get messages. But I need to know:
Can I get the conversation list using Sinch SDK with latest message for each conversation to show in list?
How can I differentiate the incoming chat messages from different users. In the sample I see only one chat messages screen which populates all the messages from different users. So, do we have any property in Sinch SDK that differentiates the conversations?
Is there any possibility to create group name, group image for group chat? And how will Sinch API will possibly maintain these group chat and single chat message?

No, Think of us as a delivery mechanism for messages, not a mailbox.
Look at the senderid in the messages, that will differentiate who is sending.
You can implement that feature by SendMessageWithHeaders, but Sinch IM is not really channel discussion group, its more well suited for multirecipient messages.

you can create the group name, group image for group chat etc features more easily. Many API SDK's resources are available in an internet market. For instant communication between users.
Refer to this, you may get an idea:
https://www.quora.com/What-SDKs-APIs-are-viable-for-implementing-instant-messaging-between-clients-Android-iOS-and-web

Related

Broadcast-like chat using Twilio

I'm using Twilio Conversations for a chat service in my project. Currently, we have only normal 1-to-1 chat which is handled using frontend SDKs. It's working properly. My new requirement is something like WhatsApp broadcast: the sender can send messages to multiple participants, but on the receiver's side, it should be a normal chat message. Is it possible to implement using Twilio? How can I implement this?
Twilio developer evangelist here.
You can definitely do this with Twilio Conversations! Here's a way to do it using the Twilio CodeExchange.
Here's the JS version of that CodeExchange app on GitHub as well.
Edit: A Messaging PM says that Conversations is not the right product for notifications/bulk messaging. They're positioning Conversations and its features for bi-directional/conversational messaging and Messaging for transactional messaging (notifications, bulk messaging, verifications, etc.)
What they've seen people do in the past:
get list of numbers, iterate through them with Messaging API to send out bulk marketing message
set up the 'from' number (twilio sender) with Conversations autocreation, so that if someone replies it creates a Conversation
Handle the interactive dialogue with the person who wrote back using Conversations
Let me know if this helps at all!

Twilio: claims they support group MMS conversations but don't?

Twilio claims they support group MMS conversations: https://www.twilio.com/blog/group-mms-texting-for-businesses
However, the documentation links they provide goes to a 404 page: https://www.twilio.com/docs/conversations/group-texting
I'm trying to figure out of Twilio can support a group MMS conversation among several people on their mobile phones having a conversation with a Twilio number in a group conversation.
If you're on your mobile phone's texting app, and you send a text to multiple people at once, it's converted to MMS and is a group conversation among multiple people. It is not sending separate SMS messages to each person, but rather an actual group conversation.
I've been looking at Twilio's API docs for their Conversations (https://www.twilio.com/docs/conversations), but it doesn't look like they actually support group MMS, or at least I cannot get it working.
The closest I could get was creating a Twilio number participant with 3 other participants, but on each person's mobile texting app, they saw the messages from everyone else come across as just the Twilio number. Effectively it was a "2-way" conversation with the person and Twilio's number, but multiple people could be the Twilio number behind the scenes.
Bandwidth texting service provides actual group MMS, where I can send a message to an array of phone numbers via the to and it works just as expected. The issue is they are expensive with minimum monthly costs I was hoping to reduce.
It's a little frustrating, because Twilio announced in 2021 they supported group MMS, but none of their docs or examples seem to actually implement this.
Am I missing the docs somewhere or need to configure some setting for group MMS?
Group MMS has been put on hold. The ecosystem migration to 10DLC routes introduced compatibility issues at the carrier level, so this issue impacts all CPaaS providers, when using Group MMS over 10DLC routes (which is a requirement for A2P traffic).
Limitation to Group MMS
https://www.twilio.com/changelog/limitation-to-group-mms
A workaround is to use Twilio Conversations which will allow a one:many distribution of messages. The only difference is the parties that art part of that conversation won't appear in the mobile devices message client address bar.
If you have activated group texting before march 2022, you can still use twilio's group APIs as they are kind of deprecated only for newer uesrs.
Try using the twilio docs after signing in, if you are older user you'll not get 404.

Using Twilio Chat on iOS, is it possible to send a small amount of custom non-message data between users?

We have an app built with Twilio Chat for iOS and everything is working very well. However, we now have a requirement to invite the other chat participant to join a video room, and we would like to send the invite signal through the Twilio Chat channel that is already established (similar in functionality to the Typing signal.)
I know Push Notifications are supported by Twilio Chat, but that seems like overkill for this use case, where a simple signal is all that's needed.
What is the easiest way to send a very small amount of non-message data between Twilio Chat channel participants?
Twilio developer evangelist here.
When you send a message with Twilio Chat you can also set an Attributes field which can contain JSON. You can then use this to signal that the message is not for printing on the page, but a service message or invite. You will then need to updated your UI to read the attributes of a message and decide whether to display it or use it to create the Video chat.
Let me know if that helps at all.

3rd Party Library for chat with syncing to other device

I am working on chat application. I have chat syncing option like skype. suppose I am logged in Device A and I have done chat from this device. now when I logged in Device B at that time all the chat history will be synced in device B.
Problem with XMPP
I have 4 types of chat person to person, person to network, person to business and person to group. In xmpp we cant differentiate the type of chat, as in out local database we have a type field. and I guess in xmpp server database there is no type field to identify the type of chat. so I am looking for 3rd party API for chat.
In XMPP, you can use the specification Message Archive Management to achieve this.
use this https://www.twilio.com/ .this is gives you SDK. Twilio provide service of sms and chatting

Send XMPP message element multiple destinations (Facebook Chat API)

I'm using Facebook Chat API in an iOS app. I already can send a message successfully to a Facebook friend. Now I'm wondering if a can send the same message to multiple recipients.
I don't know if it's technically possible or there's any limitation about that.
I know that I can create N messages for N users and send one by one. But depending on the number of Facebook friends that the user can select, it can take a long time until all the messages are delivered. If this is the only case, should I open one different thread for each message that is going to be sent with the XMPP stream?
I appreciate any resolution or clue for this question.
There's an XMPP extension XEP-0033: Extended Stanza Addressing which supports multicasting messages to multiple recipients. The extension has progressed to draft status, however few XMPP servers or clients support it. I doubt Facebook Chat does, and couldn't find any mention in the XMPPFramework source.
I don't think there's a better way than sending the same message to multiple recipients. Some servers may require you to pause between sending lots of identical messages, and I wouldn't be surprised if that were true of Facebook Chat.
Multi-User Chat is another way to accomplish this with XMPP, but unfortunately Facebook Chat doesn't support MUC.

Resources