Skip to main content

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.

Do you like learning by example?

You can find a complete, working integration on GitHub: salesiq-mobilisten-android-sample. Just clone the repo, add your keys, and run it.

Getting started

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.
This setup should take about 10 minutes to finish.

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:

app/build.gradle
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.

  1. Enter your app's package name (application ID) and select Generate.

    The SalesIQ console showing the package name field and the Generate button
  2. Copy the App Key and Access Key that were generated. You will need to provide both when you set up the SDK.

    The SalesIQ console showing the generated App Key and Access Key
  • 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:

settings.gradle.kts
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url = uri("https://maven.zohodl.com") }
}
}

Add the dependency

Add the SalesIQ SDK dependency to your app-level build.gradle file, then click Sync Now.

app/build.gradle.kts
dependencies {
implementation("com.zoho.salesiq:mobilisten:9.0.1")
}
tip

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.

PermissionPurpose
INTERNET, ACCESS_NETWORK_STATEAllows the SDK to connect to SalesIQ and check whether a network connection is available.
RECORD_AUDIOYou can send voice messages in chat. If you add the Calls module, you can also make voice calls.
VIBRATEThe app delivers haptic feedback and vibration cues to notify users of chat gestures, new messages, and incoming calls.
${applicationId}.permission.WRITE_SCHEDULERestricts 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:

AndroidManifest.xml
<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:

PermissionRequired for
POST_NOTIFICATIONSShowing push notifications on Android 13 and above.
ACCESS_FINE_LOCATION / ACCESS_COARSE_LOCATIONSharing 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.

proguard-rules.pro
-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.

  1. Create the res/xml/merged_backup_rules.xml file. 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>
  2. Create the res/xml/merged_data_extraction_rules.xml file. 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>
  3. Reference both files in the <application> tag of your AndroidManifest.xml file.

    AndroidManifest.xml
    <!-- Add these attributes to your existing <application> tag, and keep the attributes you already have (shown as …). -->
    <application
    android: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 force these versions

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.

app/build.gradle
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'
}
}
DependencyVersion
androidx.activity:activity-compose1.10.1
androidx.activity:activity-ktx1.10.1
androidx.appcompat:appcompat1.6.1
androidx.browser:browser1.8.0
androidx.cardview:cardview1.0.0
androidx.compose:compose-bom2026.03.01
androidx.compose.material:material-icons-extended2026.03.01 (BOM)
androidx.compose.material3:material32026.03.01 (BOM)
androidx.compose.ui:ui2026.03.01 (BOM)
androidx.compose.ui:ui-tooling-preview2026.03.01 (BOM)
androidx.constraintlayout:constraintlayout2.2.1
androidx.core:core-ktx1.10.1 (chat) · 1.13.1 (Calls)
androidx.datastore:datastore-preferences1.1.1
androidx.documentfile:documentfile1.1.0
androidx.dynamicanimation:dynamicanimation1.0.0
androidx.fragment:fragment-ktx1.8.6
androidx.lifecycle:lifecycle-livedata-ktx2.6.2
androidx.lifecycle:lifecycle-runtime-ktx2.6.2
androidx.localbroadcastmanager:localbroadcastmanager1.1.0
androidx.media3:media3-exoplayer1.8.0
androidx.media3:media3-transformer1.9.2
androidx.media3:media3-ui1.8.0
androidx.recyclerview:recyclerview1.4.0
androidx.room:room-ktx2.6.1
androidx.room:room-runtime2.6.1
androidx.security:security-crypto-ktx1.1.0-alpha07
androidx.swiperefreshlayout:swiperefreshlayout1.1.0
androidx.webkit:webkit1.13.0
androidx.work:work-runtime-ktx2.10.5
com.github.bumptech.glide:glide4.16.0
com.google.android.flexbox:flexbox3.0.0
com.google.android.gms:play-services-location21.3.0
com.google.android.gms:play-services-maps19.2.0
com.google.android.gms:play-services-time16.0.1
com.google.android.material:material1.12.0
com.squareup.okhttp3:logging-interceptor4.12.0
com.squareup.okhttp3:okhttp4.12.0
com.squareup.retrofit2:converter-gson2.11.0
com.squareup.retrofit2:retrofit2.11.0
io.coil-kt:coil-compose2.7.0
io.coil-kt:coil-gif2.7.0
io.coil-kt:coil-video2.7.0
io.insert-koin:koin-android4.1.1
io.insert-koin:koin-androidx-compose4.1.1
io.insert-koin:koin-core4.1.1
org.jetbrains.kotlinx:kotlinx-collections-immutable0.4.0
org.jetbrains.kotlinx:kotlinx-coroutines-android1.9.0
org.jetbrains.kotlinx:kotlinx-coroutines-core1.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)

MetricminifyEnabled 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 MB20.11 MB
App install increase (minimal app, after installation on a device)11.28 MB65.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)

MetricminifyEnabled 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 MB9.04 MB
App install increase (in addition to chat)15.63 MB19.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.

How the app size increase is measured, and why yours may be smaller

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.

Application.onCreate()Your app startsMobilistenActivityLifecycleCallbacksCall register(this) before super.onCreate()ZohoSalesIQ.initialize(app, config)Your App Key, Access Key, and result callbackresult.isSuccessThe SDK is ready, and you can call other APIsLauncher.show(ALWAYS) or present()Show the chat launcher or open the chat
Initialize the SDK once in Application.onCreate(), and register the lifecycle callbacks before super.onCreate(). If initialization is not successful, check your App Key, Access Key, and network connection.
Essential first step

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.

MyApplication.kt
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.
}
}
}
}

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:

AndroidManifest.xml
<!-- 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:

  1. Show the chat launcher.

    ZohoSalesIQ.Launcher.show(ZohoSalesIQ.Launcher.VisibilityMode.ALWAYS)
  2. Run your app. The SalesIQ chat button appears on the screen.

  3. 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:

MyWorkerFactory.kt
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
}

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.