Metadata

With Sinch Chat, it's possible to provide your conversation metadata. Here's an example:

Copy
Copied
val metadata = mutableListOf<SinchMetadata>()
metadata.add(SinchMetadata.Custom("userName", "John", SinchMetadataMode.Once)
metadata.add(SinchMetadata.Custom("phoneNumber", "123 123 123", SinchMetadataMode.EachMessage)

The metadata stored as Once will be sent only once at the beginning of the conversation, while EachMessage metadata will be attached to each message.

We'd love to hear from you!
Rate this content:
Still have a question?
 
Ask the community.