tencent cloud

Feedback

Last updated: 2024-04-01 17:43:49

    Quickly Integrating Cloud Contact Center Android SDK

    This topic mainly introduces how to quickly integrate Cloud Contact Center Android SDK into your project. Just follow the steps for configuration, and you can complete the integration of the SDK.

    Environment Requirements

    Android Studio 3.5+.
    Android 4.1 (SDK API 16) or later.

    Integrating SDK (aar, jar)

    Manual Download (aar, jar)

    Currently we have not released to mavenCentral, so you can only manually download SDK into your project:
    1. Download the latest version of TCCC Agent SDK.
    2. Copy the downloaded aar file into the app/libs directory of your project.
    3. Specify the local repository path in build.gradle in the root directory of your project.
    
    implementation fileTree(dir: "libs",includes: ['*.aar','*.jar'])
    4. Specify the CPU architecture used by the app in defaultConfig in app/build.gradle.
    defaultConfig {
    ndk {
    abiFilters "armeabi", "armeabi-v7a", "arm64-v8a"
    }
    }
    Note:
    Currently, the TCCC Agent SDK supports armeabi, armeabi-v7a, and arm64-v8a.
    5. In app/src/AndroidManifest.xml, specify that the app does not permit the application to be involved in the backup and restore infrastructure.
    
    6. Click
    
    Sync Now to complete the integration of the TCCC Agent SDK.

    Configuring Permissions

    In AndroidManifest.xml, set the permissions of the app. The TCCC Agent SDK needs the following permissions:
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />

    Setting Obfuscation Rules

    In the proguard-rules.pro file, add the related classes of the TCCC SDK to the non-obfuscated list:
    -keep class com.tencent.** { *; }

    Code Implementation

    For specific coding implementation, please refer to Android SDK API.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support