Integrate the Chat SDK
Step 1: Add the following to your
Step 2: Now, enable all the below mentioned capabilities into your project.
Now, go to the background mode and enable the below given modes
|Audio,Airplay, and Picture in Picture|
#Configure the SDK server & Data
Now, configure the server details in SDK and access the data globally using the AppDelegate class.
Step 7:Download and extract the iOS supporing files and move into iOS project under Runner directory.
To start using the sdk, there are a few basic pieces of data that must be made available for the SDKs to function perfectly.
Thus, we utilize the usage of the
ChatSDK builder class making the data available for SDKs. Furthermore, in your project you must use the
AppDelegate class within the
didFinishLaunchingWithOptions method and also provide required data to build the ChatSDK Builder. Let's have a look at the example given below.
#Chat Builder Function Description
|setAppGroupContainerID||Pass group container id of the project that stores UserDefaults and Database|
|setLicenseKey||Used to proceed with Registration|
|isTrialLicense||If the obtained license key is a trial license key - display the message as |
|setDomainBaseUrl||Url required to make API calls|
|buildAndInitialize||n/a||Initialize the chat configuration|
The base url must have Http/Https protocol which should be closed with a
slash (/), or else will display an exception