Integration Guide (Lite)

Steps to integrate Acquire android-sdk-lite 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' // if want to give support for links
implementation ('io.socket:socket.io-client:1.0.0') {
exclude group: 'org.json', module: 'json'
}
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.+'
implementation 'com.amitshekhar.android:android-networking:1.0.2'
implementation 'com.acquireio:lite:1.+'
implementation 'com.squareup.picasso:picasso:2.71828'
}

w.e.f. lite SDK version 1.1.6 , now you have to mention picasso dependency to your app gradle file.

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.

To handle chat events manually click here.

To customize our chat widget click here.

To enable our chat widget callsetShowDefaultFAB(true);before initialization of sdk.

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