Metadata

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

Copy
Copied
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.

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