Install the Android SDK

To get started, install the SDK and then update some of the settings in your project.

Add Maven Repository 

Add the following maven repository to your build.gradle or build.gradle.kts file.

Add maven repo to build.gradle
1maven {
2    url "https://s3.amazonaws.com/inapp.salesforce.com/public/android"
3}
Add maven repo to build.gradle.kts
1maven {
2    url = uri("https://s3.amazonaws.com/inapp.salesforce.com/public/android")
3}

Add Dependency 

Add the following dependency to your build.gradle or build.gradle.kts file.

Add dependency to build.gradle
1dependencies {
2  implementation "com.salesforce.service:messaging-inapp-ui:<version>"
3}
Add dependency to build.gradle.kts
1dependencies {
2  implementation("com.salesforce.service:messaging-inapp-ui:<version>")
3}

To get the latest version information, refer to the Enhanced In-App Chat release notes.

Tip

If you plan to use the Core SDK (and not the UI SDK), use the following dependency instead of messaging-inapp-ui: com.salesforce.service:messaging-inapp-core:<version>.

Note

Update Other Settings 

Turn on the dataBinding feature in the Android section of your build.gradle file.

Add build features to build.gradle
1buildFeatures {
2  dataBinding true
3}
Add build features to build.gradle.kts
1buildFeatures {
2  dataBinding = true
3}