zoho / salesiq-mobilisten-android-sample

Sample App to integrate SalesIQ Android SDK (Mobilisten)

Home Page:https://mobilisten.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installing Mobilisten (ZohoSalesIQ Android SDK)

Requirements

The SDK supports Android 5.0 (API level 21) and above.

Step 1:

Add the following maven repository in the settings.gradle file or root build.gradle file (/build.gradle).

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

enter image description here

Step 2:

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

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

enter image description here

Step 3:

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

enter image description here

Step 4:

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:

public class MyApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        
        InitConfig initConfig = new InitConfig();
        initConfig.setFont(Fonts.REGULAR, <fontpath>);
        
        ZohoSalesIQ.init(this, "your app key", "your access key", initConfig, new InitListener() {
            @Override
            public void onInitSuccess() {
                 ZohoSalesIQ.Launcher.show(ZohoSalesIQ.Launcher.VisibilityMode.ALWAYS); //by default launcher will be hidden and it can be enabled with this line.
            }

            @Override
            public void onInitError(int errorCode, String errorMessage) {
                //your code
            }
        });
    }
}
Step 5:

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

<application  android:name=".MyApplication">
  ...
</application>​

Help Doc - Mobilisten (ZohoSalesIQ Android SDK)

Demo Application:

Download our demo app from the Play Store today!