Skip to main content

Troubleshooting

If something in the Zoho SalesIQ Android SDK (Mobilisten) does not work as you expect, find the problem in the tables below. There is one table for each area, such as the build or push notifications. Each row gives the usual cause, the fix, and where to read more.

Build and Gradle

IssueCause and solutionLearn more
Gradle sync fails with the error Could not resolve com.zoho.salesiq:mobilisten.Gradle does not know where to download the SDK from, because the Zoho Maven repository is missing from your project. Add maven { url = uri("https://maven.zohodl.com") } to your repositories.Add the Maven repository
The manifest merger fails on android:fullBackupContent or android:dataExtractionRules.Another library in your app declares its own backup rules. Combine all the rules into one file of each type, and add tools:replace to your <application> tag.Backup rules
A duplicate class or version conflict error appears after you add the SDK.Something in your build forces a library to a different version. Remove any rule that forces the version of a library that the SDK includes, and match your versions to the ones the SDK uses.Dependencies

Runtime and launcher

IssueCause and solutionLearn more
SDK calls made early in app startup do nothing, or you see warnings about encrypted preferences or the master key.MobilistenActivityLifecycleCallbacks.register(this) is probably not the first call in onCreate(). Move it before super.onCreate(), so the SDK has its context and storage ready in time.Initialization
The chat button never appears.Either the SDK did not start, or the button is hidden. Check the result of initialize() to confirm that it succeeded. Then call ZohoSalesIQ.Launcher.show(ZohoSalesIQ.Launcher.VisibilityMode.ALWAYS).Verify your integration
APIs do nothing when you call them right after initialize().The SDK starts up in the background, so it is not ready yet. Call other APIs from inside the result callback of initialize().Best practices
Bot triggers that run after a delay do not fire on time on Android 12 and above.To fire a delayed trigger on time, the SDK needs permission to set exact alarms. Add the SCHEDULE_EXACT_ALARM permission to your manifest.Permissions
Background tasks do not work correctly when your app uses a custom WorkerFactory.Your factory is trying to create the SDK's background workers as well as your own. Return null for any worker whose class name starts with com.zoho., so the SDK can create those workers itself.WorkManager

Push notifications

IssueCause and solutionLearn more
Push notifications do not arrive.Usually, the FCM HTTP v1 private key is not uploaded, or the device token is not registered. Upload the key in the SalesIQ console, and call ZohoSalesIQ.Notification.enablePush(token, false).Push notifications
The SDK handles push notifications that belong to your app.Your messaging service passes every message to the SDK. Before you call handle(), check each one with isZohoSalesIQNotification(data).Identify SalesIQ notifications
Notifications do not appear on Android 13 and above.The visitor has not allowed the POST_NOTIFICATIONS permission. Declare the permission in your manifest, and ask the visitor for it while the app is running.Add the notification permission
Tapping a notification does nothing or opens the wrong screen.The action source is set to APP, but your app does not handle the tap. Set the action source to SDK, or handle the tap in NotificationListener.onClick().Handle the notification tap

Theming

IssueCause and solutionLearn more
Your brand color is not applied.Most of the SDK takes its color from colorAccent. Set it once in your SalesIQ theme, instead of changing each color attribute on its own.Customize the colors
The chat does not switch between light and dark along with the device.The SDK follows the device by default, so your app probably calls syncThemeWithOS(false). The SDK remembers this setting, so call ZohoSalesIQ.syncThemeWithOS(true) to turn syncing back on. To use your own colors in each mode, also override Base.DarkActionBar for the light theme and Base.Dark for the dark theme.Follow the device theme
Colors from the SalesIQ console replace the colors in your styles.xml file.The theme source decides which colors win. Call ZohoSalesIQ.setThemeSource() to choose between the console colors and your own.Set theme source

Need more help?

  • To capture more detail about a problem, turn on the diagnostic logger.
  • Following the patterns in the Best practices section prevents most of these problems.
  • To compare your setup with one that works, look at the sample app on GitHub.