Metadata
With Sinch Chat, it's possible to provide your conversation metadata. For example:
var metadata: SinchMetadataArray = [
SinchMetadataCustom(key: "userName", value: "John", mode: .once)
]
metadata.append(
SinchMetadataCustom(key: "phoneNumber", value: "123 123 123", mode: .withEachMessage)
)
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.