Integrate the Chat SDK
   Step 1: Add the following to your root build.gradle file.
Step 2: Add the following dependencies in the app/build.gradle file.
Step 3: Add the below line in the gradle.properties file, to avoid imported library conflicts.
Step 4: Open the AndroidManifest.xml and add below permissions.
STEP 4:Download flysdk and extract the Android supporing files and move into Android project
- FlyBaseController.kt
- FlyEvent.kt
Configure in app/build.gradle file#
Initialize Chat SDK#
Create Android Application#
In Android porject create a new class called MyApplication and copy the below code snippet in the MyApplication file.
Add the following override methods in your Android main activity#
To start using the sdk, there is a need for some basic requirements before proceeding with the initialization process. Thus, the ChatSDK builder class is used to provide the necessary data to the SDK. In your Android Application class, inside the onCreate() method use the below ChatSDK Builder to provide the necessary data. 
- Java
- Kotlin
Chat Builder Function Description#
| Function | Parameter Type | Description | 
|---|---|---|
| setDomainBaseUrl | String | Url is provided to make API calls | 
| setLicenseKey | String | License key is required to proceed with registration | 
| setIsTrialLicenceKey | boolean | If the provided license key is for trial version, display the text as ‘true’ else ‘false’ | 
| build | n/a | Initializes the chat configuration | 
caution
The base URL must have the Http/Https protocol which must be closed with a ‘slash (/)’, if not an exception - a bug message will pop up.