Overview

Zoho SalesIQ Mobile SDK will let you embed the tracking and live chat widget code in your existing Android mobile application. Using which, you can track and converse with the visitors hitting your website right away from your mobile application. You can customize the SDK embedded in your application using the following Android SDK APIs(copy-paste the API codes inside the “import” tag of your application class).

Note:
Zoho SalesIQ is GDPR Compliant! The configurations for website and Mobile SDK remains the same if you have already configured on your site it will be automatically reflected in Mobile SDK as well. If not, then learn how to configure now.

Installing live chat on your android mobile application

Requirements

The SDK supports Android API level 14 and above.

Installing Zoho SalesIQ SDK

Step 1: Add the following maven repository in the root build.gradle file (/build.gradle).


allprojects {
    repositories {
                maven { url 'https://maven.zohodl.com' }
                 }
}

Step 2: Add the following dependency in the app's build.gradle file (app/build.gradle).


dependencies {
   implementation 'com.zoho.salesiq:mobilisten:1.3'
}

Step 3: Then, press Sync Now in the bar that appears in the IDE.

Step 4: In the Zoho SalesIQ console, goto Settings -> Websites -> Live Chat for Mobile Apps, and choose Android from the menu. 

Step 5: Then, enter your application ID and click Generate Token.

Step 6:Once the token is generated, you will find the unique app key and the access key provided for your application, which helps to authenticate your app with SalesIQ. Each app can have one app key and three active access key.

App Key
The App key is unique to each app, this key can’t be re-generated.

Access Key
This key is the token to access the SalesIQ SDK on your application. Each application can have only three active access keys. When you generate the fourth access key then you will be prompted to delete an existing access key or the forth key will replace the oldest access key of the application.

You can associate the access key in each version of your application. If you wish to release a new version for your application, then you can create a new access key and associate with the application. The old version will also be accessible until you delete or disable the access key. This can help you to prevent the malfunctioning of the chat app from hackers.

Step 7: Now, initialize the SDK by adding the following line in the onCreate() method of your application class. You will have to insert the app key and access key as mentioned below:


ZohoSalesIQ.init(this, "your app key", "your access key");

  • If you don't override Application class, then you need to override it as follows.

public class MyApplication extends Application {
@Override
public void onCreate() {
     super.onCreate();
     ZohoSalesIQ.init(this, "your app key", "your access key");
}
}

  • Also, in the AndroidManifest.xml file, add the application class name in the <application> tag.

<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.myapp">
    <application
                  android:name=".MyApplication" >
      ...
     </application>
</manifest>