Metadata
With Sinch Chat, it's possible to provide your conversation metadata. Here's an example:
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.