Getting started
The Zoho SalesIQ Android SDK (Mobilisten) enables you to integrate live chat, chatbots, and voice calls into your Android app. This guide provides step-by-step instructions, from creating a new project to deploying a functional chat feature. You will learn how to generate keys, add and configure the SDK, and verify successful integration.
You can find a complete, working integration on GitHub: salesiq-mobilisten-android-sample. Just clone the repo, add your keys, and run it.
Here's what you'll need:
- A Zoho SalesIQ account with your brand set up.
- Android Studio and an app that targets Android 5.0 (Lollipop) or higher, with API level 21 or above.
- A few minutes to generate your App Key and Access Key, which we'll cover below.
1. Install the SDK → 2. Get your keys → 3. Set things up → 4. Check that everything works
Installation
Requirements
These are the minimum supported versions, but you can use newer ones if you like.
- Minimum Android version: Android 5.0 (Lollipop), API level 21
- Compile SDK version: API level 35 (Android 15) or above
- Java version: Java 11 or above, for both Kotlin and Java projects
- Gradle version: Gradle 8.7 or above, with Android Gradle Plugin 8.6 or above
The following example shows these settings in your app-level build.gradle file:
android {
compileSdk 35 // or higher
defaultConfig {
minSdk 21 // Android 5.0 (Lollipop)
// ...
}
}
Get your App Key and Access Key
To generate your credentials in the SalesIQ console, open Settings, select Brands, choose your brand, go to Installation, then Mobile SDK, and select Android.
-
Enter your app's package name (application ID) and select Generate.
-
Copy the App Key and Access Key that were generated. You will need to provide both when you set up the SDK.
- Each App Key is unique and cannot be regenerated.
- The Access Key is the token your app uses to authenticate with SalesIQ. Each app can have up to three active access keys. To generate a fourth, you must first remove an existing key. Assign a different access key to each app version to ensure older versions remain functional until you disable or delete their key.
Add the Maven repository
Add the Zoho Maven repository so Gradle can locate the SDK.
If you use Gradle 6.8 or above, add the repository to your settings.gradle file:
- Kotlin
- Groovy
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url = uri("https://maven.zohodl.com") }
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url 'https://maven.zohodl.com' }
}
}
Add the dependency
Add the SalesIQ SDK dependency to your app-level build.gradle file, then click Sync Now.
- Kotlin
- Groovy
dependencies {
implementation("com.zoho.salesiq:mobilisten:9.0.1")
}
dependencies {
implementation 'com.zoho.salesiq:mobilisten:9.0.1'
}
To enable in-app voice calls, make sure to add the calls module. Check the Calls section for details about its dependencies, requirements, and permissions.
The example above uses the most recent published version. Check the Releases section for the complete version history and changelog before releasing your project.
Permissions
The SDK manifest specifies all required permissions, which are automatically added to your app. You do not need to declare them separately.
| Permission | Purpose |
|---|---|
INTERNET, ACCESS_NETWORK_STATE | Allows the SDK to connect to SalesIQ and check whether a network connection is available. |
RECORD_AUDIO | You can send voice messages in chat. If you add the Calls module, you can also make voice calls. |
VIBRATE | The app delivers haptic feedback and vibration cues to notify users of chat gestures, new messages, and incoming calls. |
${applicationId}.permission.WRITE_SCHEDULE | Restricts write access to the SDK's private content provider, ZohoLDContentProvider, which is app-scoped and not exported. |
Some proactive bot triggers in the SalesIQ portal activate after a brief delay. For example, a bot may greet a visitor a few seconds after the visitor arrives. If the delay exceeds one second, the SDK schedules an exact alarm to ensure the trigger works on time, even if your app is in the background or closed. This permission is only required in that case, so add it for Android 12 and above:
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
Please note the following: On targetSdk 33 and above, this permission is not granted automatically. Users must enable it in Settings, so confirm availability with AlarmManager.canScheduleExactAlarms(). Google Play restricts which apps can request this permission, and non-compliant apps may be rejected. If your app does not require exact timing, use an inexact alarm instead.
Optional permissions
Required permissions vary based on the features you intend to use:
| Permission | Required for |
|---|---|
POST_NOTIFICATIONS | Showing push notifications on Android 13 and above. |
ACCESS_FINE_LOCATION / ACCESS_COARSE_LOCATION | Sharing the visitor's location in chat through the location message widget. |
The chat SDK includes the microphone (RECORD_AUDIO) permission for voice messages. For information on voice call permissions, see the Calls section under Permissions.
ProGuard and R8
Add the following ProGuard rule to your proguard-rules.pro file. The same rule applies when you use R8.
-dontwarn kotlinx.parcelize.Parcelize
Backup rules — apply only if your app defines custom backup rules
If your app enables backup and defines custom backup rules, you need to combine all the rules into one file of each type. This also applies when another library in your app defines backup rules. Android cannot merge multiple rule files, so your manifest must reference the combined files.
-
Create the
res/xml/merged_backup_rules.xmlfile. Add your own rules and the Mobilisten rules to it.res/xml/merged_backup_rules.xml<?xml version="1.0" encoding="utf-8"?><full-backup-content><!-- Your own rules and rules from other libraries --><exclude domain="sharedpref" path="sample-data" /><exclude domain="database" path="sample.db" /><!-- Mobilisten rules --><exclude domain="sharedpref" path="siq_encrypted_shared_preference_entries.xml" /><exclude domain="sharedpref" path="siq_session.xml" /><exclude domain="sharedpref" path="siq_permission.xml" /><exclude domain="database" path="siq_mobilisten.db" /><exclude domain="database" path="mobilisten_zoho_salesiq.db" /></full-backup-content> -
Create the
res/xml/merged_data_extraction_rules.xmlfile. Add the same rules to it.res/xml/merged_data_extraction_rules.xml<?xml version="1.0" encoding="utf-8"?><data-extraction-rules><cloud-backup><!-- Your own rules and rules from other libraries --><exclude domain="sharedpref" path="sample-data" /><exclude domain="database" path="sample.db" /><!-- Mobilisten rules --><exclude domain="sharedpref" path="siq_encrypted_shared_preference_entries.xml" /><exclude domain="sharedpref" path="siq_session.xml" /><exclude domain="sharedpref" path="siq_permission.xml" /><exclude domain="database" path="siq_mobilisten.db" /><exclude domain="database" path="mobilisten_zoho_salesiq.db" /></cloud-backup><device-transfer><exclude domain="sharedpref" path="sample-data" /><exclude domain="database" path="sample.db" /></device-transfer></data-extraction-rules> -
Reference both files in the
<application>tag of yourAndroidManifest.xmlfile.AndroidManifest.xml<!-- Add these attributes to your existing <application> tag, and keep the attributes you already have (shown as …). --><applicationandroid:dataExtractionRules="@xml/merged_data_extraction_rules"android:fullBackupContent="@xml/merged_backup_rules"tools:replace="android:fullBackupContent,android:dataExtractionRules,android:allowBackup"… >
Dependencies
The SDK includes the following third-party libraries as transitive dependencies. Gradle adds them automatically, so you do not need to declare them.
If the chat SDK and Calls add-on use different versions, both are listed (for example, 1.10.1 (chat) and 1.13.1 (Calls)). Gradle will use the higher version if both are included.
Do not override or force the version of any dependency that the SDK includes. For example, avoid using resolutionStrategy.force, an exclude with a manual version, or a conflicting direct dependency. The SDK is built and tested with these exact versions, so a different version can cause build failures or runtime crashes. If your app also uses one of these libraries, match its version to the one listed here.
The following example shows what to avoid. It forces the version of a library that the SDK depends on.
configurations.all {
resolutionStrategy {
// Do not do this. Forcing a version that the SDK includes can cause build errors or runtime crashes.
force 'io.insert-koin:koin-core:3.5.0'
}
}
| Dependency | Version |
|---|---|
androidx.activity:activity-compose | 1.10.1 |
androidx.activity:activity-ktx | 1.10.1 |
androidx.appcompat:appcompat | 1.6.1 |
androidx.browser:browser | 1.8.0 |
androidx.cardview:cardview | 1.0.0 |
androidx.compose:compose-bom | 2026.03.01 |
androidx.compose.material:material-icons-extended | 2026.03.01 (BOM) |
androidx.compose.material3:material3 | 2026.03.01 (BOM) |
androidx.compose.ui:ui | 2026.03.01 (BOM) |
androidx.compose.ui:ui-tooling-preview | 2026.03.01 (BOM) |
androidx.constraintlayout:constraintlayout | 2.2.1 |
androidx.core:core-ktx | 1.10.1 (chat) · 1.13.1 (Calls) |
androidx.datastore:datastore-preferences | 1.1.1 |
androidx.documentfile:documentfile | 1.1.0 |
androidx.dynamicanimation:dynamicanimation | 1.0.0 |
androidx.fragment:fragment-ktx | 1.8.6 |
androidx.lifecycle:lifecycle-livedata-ktx | 2.6.2 |
androidx.lifecycle:lifecycle-runtime-ktx | 2.6.2 |
androidx.localbroadcastmanager:localbroadcastmanager | 1.1.0 |
androidx.media3:media3-exoplayer | 1.8.0 |
androidx.media3:media3-transformer | 1.9.2 |
androidx.media3:media3-ui | 1.8.0 |
androidx.recyclerview:recyclerview | 1.4.0 |
androidx.room:room-ktx | 2.6.1 |
androidx.room:room-runtime | 2.6.1 |
androidx.security:security-crypto-ktx | 1.1.0-alpha07 |
androidx.swiperefreshlayout:swiperefreshlayout | 1.1.0 |
androidx.webkit:webkit | 1.13.0 |
androidx.work:work-runtime-ktx | 2.10.5 |
com.github.bumptech.glide:glide | 4.16.0 |
com.google.android.flexbox:flexbox | 3.0.0 |
com.google.android.gms:play-services-location | 21.3.0 |
com.google.android.gms:play-services-maps | 19.2.0 |
com.google.android.gms:play-services-time | 16.0.1 |
com.google.android.material:material | 1.12.0 |
com.squareup.okhttp3:logging-interceptor | 4.12.0 |
com.squareup.okhttp3:okhttp | 4.12.0 |
com.squareup.retrofit2:converter-gson | 2.11.0 |
com.squareup.retrofit2:retrofit | 2.11.0 |
io.coil-kt:coil-compose | 2.7.0 |
io.coil-kt:coil-gif | 2.7.0 |
io.coil-kt:coil-video | 2.7.0 |
io.insert-koin:koin-android | 4.1.1 |
io.insert-koin:koin-androidx-compose | 4.1.1 |
io.insert-koin:koin-core | 4.1.1 |
org.jetbrains.kotlinx:kotlinx-collections-immutable | 0.4.0 |
org.jetbrains.kotlinx:kotlinx-coroutines-android | 1.9.0 |
org.jetbrains.kotlinx:kotlinx-coroutines-core | 1.9.0 |
SDK size
The tables below show how much the SDK adds to your app. The artifact size is the size of the library files (.aar) that you add as a dependency. The app download and install increase show how much an app grows, both with minifyEnabled true (R8) and with minifyEnabled false.
The Mobilisten SDK (chat) figures include its internal core module. The Calls module (voice) figures include its internal calls-core module. The Calls module has its own version numbers, and its figures show the extra size on top of chat.
Mobilisten SDK (chat)
| Metric | minifyEnabled true (R8) | minifyEnabled false |
|---|---|---|
| Artifact size (includes the internal core module) | 9.92 MB (library size, not affected by minification) | |
| App download increase (minimal app, as delivered by Google Play) | 5.26 MB | 20.11 MB |
| App install increase (minimal app, after installation on a device) | 11.28 MB | 65.12 MB |
These figures are measured on a minimal app for a typical phone, so they are an upper limit. Your app is likely to grow less. The note below explains how the figures are measured.
Calls module (voice)
| Metric | minifyEnabled true (R8) | minifyEnabled false |
|---|---|---|
| Artifact size (includes the internal calls-core module) | 39.3 KB (Calls library only. The WebRTC native library is added separately.) | |
| App download increase (in addition to chat) | 7.84 MB | 9.04 MB |
| App install increase (in addition to chat) | 15.63 MB | 19.28 MB |
The Calls module adds this size on top of chat, and only apps that use voice calls need it. Most of this size comes from its WebRTC native library. R8 cannot shrink native libraries, so minification makes little difference to these figures.
The artifact size is not the same as the amount your app grows. When you build your app, R8 converts the SDK's code to DEX format and shrinks it. The SDK also brings in common libraries, such as AndroidX, Kotlin, and OkHttp.
These figures come from a minimal app that includes only the SDK. Its App Bundle is measured with bundletool for a typical phone, which is how Google Play delivers apps. The minimal app shares none of the SDK's dependencies, so the figures are an upper limit.
If your app already uses AndroidX, Kotlin, OkHttp, or similar libraries, it grows by only a few MB. The smallest possible increase is about 2 MB, which is the size of the SDK's own code. This is also why the minifyEnabled true column is much smaller than the minifyEnabled false column. R8 removes the code that your app does not use.
Always build your release versions with minifyEnabled true and the ProGuard rule described above. To find the exact increase for your app, build a release App Bundle of your app with and without the SDK. Then compare the two builds with bundletool get-size total, or check the App Bundle Explorer in the Play Console.
Initialization
Initialize the SDK in the onCreate() method of your Application class. You will need the App Key and Access Key that you generated in the SalesIQ console. If your app does not have a custom Application class, create one and register it in your manifest. For details, see the Register the Application class in the manifest section.
Call MobilistenActivityLifecycleCallbacks.register(this) before super.onCreate(). This call provides the SDK with the application context and activity lifecycle callbacks, and it sets up the SDK's secure storage. If this call runs later, your app does not crash. However, SDK APIs that need the context or storage do not work until it runs, so make sure it is the first line in onCreate().
Using initialize()
Create a SalesIQConfiguration object with your App Key and Access Key, then pass it to ZohoSalesIQ.initialize(). The SDK returns the result in a callback, so you can check whether initialization was successful. Replace APP_KEY and ACCESS_KEY in the example with your own keys.
- Kotlin
- Java
class MyApplication : Application() {
override fun onCreate() {
MobilistenActivityLifecycleCallbacks.register(this)
super.onCreate()
val configuration = SalesIQConfiguration.Builder("APP_KEY", "ACCESS_KEY")
.build()
ZohoSalesIQ.initialize(this, configuration) { result ->
if (result.isSuccess) {
// The SDK is initialized successfully.
// (Optional) Enable push notifications after you get the FCM token.
// For details, see the Push notifications guide.
// ZohoSalesIQ.Notification.enablePush(fcmToken, /* isTestDevice = */ false)
} else {
// Handle the failure.
}
}
}
}
public class MyApplication extends Application {
@Override
public void onCreate() {
MobilistenActivityLifecycleCallbacks.register(this);
super.onCreate();
SalesIQConfiguration configuration = new SalesIQConfiguration.Builder("APP_KEY", "ACCESS_KEY")
.build();
ZohoSalesIQ.initialize(this, configuration, result -> {
if (result.isSuccess()) {
// The SDK is initialized successfully.
} else {
// Handle the failure.
}
});
}
}
Register the Application class in the manifest
Declare your custom Application class in your AndroidManifest.xml file. To do this, add the android:name attribute to your existing <application> tag:
<!-- Add android:name to your existing <application> tag, and keep the attributes you already have (shown as …). -->
<application
android:name=".MyApplication"
… >
Verify your integration
After you initialize the SDK, follow these steps to confirm that everything is set up correctly:
-
Show the chat launcher.
- Kotlin
- Java
ZohoSalesIQ.Launcher.show(ZohoSalesIQ.Launcher.VisibilityMode.ALWAYS)ZohoSalesIQ.Launcher.show(ZohoSalesIQ.Launcher.VisibilityMode.ALWAYS); -
Run your app. The SalesIQ chat button appears on the screen.
-
Tap the chat button and start a conversation. The visitor appears on your SalesIQ dashboard.
If the chat button does not appear, see the Troubleshooting section below.
WorkManager
The SDK uses Android WorkManager to run background tasks. You only need to make changes if your app defines a custom WorkerFactory, which is common in apps that use Dagger, Hilt, or Koin. If your app uses the default WorkManager configuration, no changes are required.
When your app provides a custom WorkerFactory, WorkManager asks your factory to create every worker, including the workers that the SDK uses. Your factory cannot create these workers, so return null for any worker whose class name starts with com.zoho.. The SDK then creates its own workers.
Add the following check at the start of your createWorker() method:
- Kotlin
- Java
override fun createWorker(
appContext: Context,
workerClassName: String,
workerParameters: WorkerParameters
): ListenableWorker? {
// Let the SDK create its own workers.
if (workerClassName.startsWith("com.zoho.")) {
return null
}
// ... your existing worker logic
}
@Nullable
@Override
public ListenableWorker createWorker(
@NonNull Context appContext,
@NonNull String workerClassName,
@NonNull WorkerParameters workerParameters) {
// Let the SDK create its own workers.
if (workerClassName.startsWith("com.zoho.")) {
return null;
}
// ... your existing worker logic
}
Troubleshooting
Most issues in a first integration come from the initialization order. Make sure MobilistenActivityLifecycleCallbacks.register(this) is the first call in onCreate(), before super.onCreate(). If it runs later, your app does not crash, but SDK calls made before it may not work. For details, see the Initialization section.
For more help, see the Troubleshooting page. It covers Gradle build failures, a chat launcher that does not appear, push notifications that do not arrive, and theme issues.