How to Send and Receive Message Events

This guide covers how to send and receive Message Events with the Vonage Client SDK. Before you begin, make sure you added the SDK to your app, created a Session (Android, iOS, JS), and joined a Conversation.

Sending Message Text Events

Given a Conversation ID, you can send a Text Message Event.

Sending Message Image Events

Given a Conversation ID and URL for an image, you can send an Image Message Event.

Sending Message Custom Events

Along with a Conversation ID, you can send a completely custom payload as a Custom Message Event. This is useful if you want a Message Event type that is specific to your application.

Receiving Message Events

You can receive all Conversation Message Events in your application by setting up an Event Listener/Delegate Function. Message Events received via this Listener/Delegate will automatically be updated to the delivered state. Here you can check the kind of incoming Message Event.

Marking Message Events as Seen

Once you have received a Message Event, you can mark it as seen.