Integration Guide

Last updated 2 months ago

Steps to integrate Acquire android-sdk are as follows :

Step 1 :

Add the SDK to your project by including the following snippets in the build.gradle file:

Project level build.gradle :

allprojects {
...
repositories {
// Add this lines
maven {
url "https://android-sdk.acquire.io/artifactory/libs-release-local/"
}
}
...
}

Module build.gradle :

dependencies {
implementation 'com.android.support:appcompat-v7:27.1.0' // if not added already
implementation 'com.android.support:design:27.1.0' // if not added already
implementation 'com.android.support:support-emoji-appcompat:27.1.0' // if not added already
implementation 'com.android.support:customtabs:27.1.0'
implementation ('io.socket:socket.io-client:1.0.0') {
exclude group: 'org.json', module: 'json'
}
implementation 'com.acquireio:core:2.+'
}

Step 2 :

Initialize Acquire in the onCreate() method of an Activity where you plan to use the SDK, or an Application subclass. Use the initialization details provided by the Acquire Support admin and an Application instance:

public class XYZApp extends Application {
@Override
public void onCreate() {
super.onCreate();
AcquireApp.init(this, “put your account id here”);
}
}

To know more about initialization options click here.

After successful integration of acquire sdk you will find a chat widget on your app at bottom right position.

To handle chat events manually click here.

To customize our chat widget click here.

To temporarily remove chat widget callremoveFAB();whenever you need.

To permanently disable our chat widget call setShowDefaultFAB(false);

before initialization of sdk.

To reduce apk size (e.g. for release version).

Use com.acquireio:core-arm-v7a:2.+

instead of com.acquireio:core:2.+.

It will support nearly all devices.