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
maven {
    url "https://s3.amazonaws.com/inapp.salesforce.com/public/android"
}
Add maven repo to build.gradle.kts
maven {
    url = uri("https://s3.amazonaws.com/inapp.salesforce.com/public/android")
}

Add Dependency 

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

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

To get the latest version information, refer to the Messaging for In-App 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
buildFeatures {
  dataBinding true
}
Add build features to build.gradle.kts
buildFeatures {
  dataBinding = true
}