Set Contact Info for Business Messaging in iOS | Zoho Desk

Setting the Contact Info for the Business Messaging SDK (iOS)


When a logged-in user opens a BusinessMessaging chat, a ticket will be created based on their preferences.
If a user opens BusinessMessaging, chats anonymously, and wants to create a ticket, we have introduced the ContactInfo.


ContactInfo   

It contains the name, phone number, and email ID used when creating a ticket. Based on the contact info given, a ticket will be made.
Setting ContactInfo is entirely optional.
 

Set Contact Info  

We are providing custom contact support for Business Messaging in iOS.
Prop Name
Type
Description
name
String
The display name of the contact.
phone
String
The phone number of the contact.
email
String
The email address of the contact.

 
The following method is used for setting the Contact Info in iOS:
BusinessMessaging.setContactInfo(appId: "yourAppId", name: "Name", phone: "1234567890", email: "example@example.com)

What will happen if the logged-in user sets ContactInfo?
  1. The contact info will be omitted for logged-in users.
  2. The contact info will only work for anonymous users.