Skip to main content

Frequently asked questions

Setup

Which Android versions are supported?

The SDK runs on Android 5.0 (Lollipop), API level 21, and above. The Requirements section of the Getting started guide lists the other minimum versions too, such as the compile SDK, Java, and Gradle. Those values come from the SDK build itself, so they always match the current release.

Do I need Firebase to show chat?

No. Chat works without Firebase. You need Firebase only for push notifications, which tell visitors about new messages while your app is in the background. Without them, visitors see new messages the next time they open the chat.

Where do I get my App Key and Access Key?

You generate both keys in the SalesIQ console. To do this, you enter your app's package name, which is the unique name that identifies your app, such as com.zylker.bakes. The Get your App Key and Access Key section shows each step.

Can I use the SDK with Java instead of Kotlin?

Yes. Every API works from Java as well. Each code sample here has a Java tab, and the API reference shows the Kotlin and Java versions of each method side by side.

Behavior

Why do my SDK calls right after initialize() seem to do nothing?

The SDK is still starting up. initialize() returns right away and finishes its setup in the background, so the SDK is not ready for other calls yet. Move those calls into the result callback of initialize(), and run them once result.isSuccess is true. The Best practices section recommends the same pattern.

How do I hide the floating chat button on certain screens?

Call ZohoSalesIQ.Launcher.show(ZohoSalesIQ.Launcher.VisibilityMode.NEVER) to hide the button. When you want it back, call the same method with VisibilityMode.ALWAYS. The Launcher section describes the other visibility modes.

Can I open chat from Jetpack Compose?

Yes. Call ZohoSalesIQ.present() from an event, such as the onClick handler of a button. The Jetpack Compose guide has a complete example.

Push notifications

What should I check if push notifications do not arrive?

When notifications do not arrive, one of these is usually missing:

  • The FCM HTTP v1 private key, uploaded to the SalesIQ console.
  • The device token, registered with enablePush().
  • On Android 13 and above, the visitor's permission for POST_NOTIFICATIONS.

If all three are in place, work through the push notification issues in the Troubleshooting guide.

If my app has its own push notifications, will they conflict?

No. Your app and the SDK can share one messaging service, as long as you identify SalesIQ notifications first. Check each notification with isZohoSalesIQNotification(data). Pass the SalesIQ ones to handle(), and handle the rest in your app as before.

Theming

What is the quickest way to match my brand color?

Set colorAccent in your SalesIQ theme. Buttons, links, the chat button, and the toolbar all take their color from it, so one change is usually enough. If you want to adjust more colors, see the Customize the colors section.

Can the SDK follow the device's light or dark mode?

Yes, and it does this by default. If your app turned it off earlier, call ZohoSalesIQ.syncThemeWithOS(true) to turn it back on. You can also give each mode its own colors, as the Use your colors in light and dark mode section shows.

Can I translate the SDK's text?

The SDK already includes translations for many languages. To change its wording in one of them, override the string in the folder for that language, res/values-<language>/strings.xml. An override in res/values/strings.xml alone does not change the text on devices set to one of those languages. The Strings section explains how Android picks the text to show.

Dependencies

Can I force the SDK's dependency versions to match my app?

No. Forcing a different version can break the build or make the app crash while it runs. Let Gradle choose the version instead. If your app uses one of the same libraries, set it to the version in the dependency list.