Metadata

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

Copy
Copied
SinchSdk.Chat.setConversationMetadata({
  once: {
    'userName': 'John'
  },
  eachMessage: {
    'phoneNumber': '123 123 123',
    'website': 'www.example.com'
  }
});

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.