Android SDK

Desk360 Mobile Native Android SDK helps you embed customer support in your Android applications with ease.

Features

The Desk360 Mobile SDK for Android lets customers do any of the following:‌

  • Create new support tickets.

  • View and comment on existing tickets.

  • Interactively communicate with related support teams.

  • Use functions such as ticket prioritization, folder creating, SLA setting, etc.

  • Get detailed reports on both tickets and support agents.

  • Customize the look of your support system on Desk360 panel.

Installation

Setup

To integrate Desk360 into your Android project , add below parts to your build.gradle(:project name) file under project directory.

maven {url 'https://jitpack.io'}

If gradle version is greater than or equal 7.0.0 add above code to your projects setting.gradle file instead of build.gradle (:projectName) file.

Add the dependency your build.gradle(:app) file under the app folder.

dependencies {
    implementation 'com.github.Teknasyon-Teknoloji:desk360-android-sdk:latest_release'
}

Add Data and View Binding code block to your build.gradle(:app) file too.

apply plugin: 'kotlin-kapt' // or under plugins -> id 'kotlin-kapt'

android {
    
    buildFeatures {
        dataBinding true
    }
}

Usage

Start Desk360

import com.teknasyon.desk360.helper.Desk360Config
import com.teknasyon.desk360.helper.Desk360SDKManager
import com.teknasyon.desk360.helper.Platform
import com.teknasyon.desk360.helper.Desk360SDK
        val desk360SDKManager = Desk360SDKManager.Builder(context:Context)
            .setAppKey("SDK_App_Key")
            .setAppVersion("1.0.1")
            .setLanguageCode("en")
            .setPlatform(Platform.GOOGLE)
            .setCountryCode("US")
            .setCustomJsonObject(
                JSONObject(
                    "{\n" +
                            "  \"name\":\"AndoidSDK\",\n" +
                            "  \"age\":30,\n" +
                            "  \"cars\": {\n" +
                            "    \"car1\":\"RED\",\n" +
                            "    \"car2\":\"BLUE\",\n" +
                            "    \"car3\":\"ORANGE\"\n" +
                            "  }\n" +
                            " }"
                )
            )
            .build()

        desk360SDKManager.initialize("firebase notification token", "device id")

        Desk360SDK.start()
ParametersDescription

token

your notification token

deviceId

your Android device id

appKey

desk360 Api Key will provided when you get the license

appVersion

your application's version number

languageCode

ISO 639-1 Code for sdk language: "en","fr,"tr

platform

mobile platform: Platform.GOOGLE or Platform.HUAWEI

countryCode

country code: "tr", "us", "de"

jsonObject

for custom datas

Use Desk 360

       val desk360SDKManager = Desk360SDKManager.Builder(context)
            .setAppKey("app key")
            .setAppVersion("app version")
            .setLanguageCode("your selected ISO 639-1 Code for language: tr, en")
            .setPlatform("mobile platform: Platform.GOOGLE or Platform.HUAWEI")
            .setCountryCode("country code: tr, de")
            .setCustomJsonObject("for custom data")
            .build()

       desk360SDKManager.initialize(
             notificationToken = "your firebase token",
             deviceId = "your Android device id"
       )

        Desk360SDK.start()
        finish()		

Open Desk360 without Notification Service

If your app will not use notification then you must set token "" and for targetId ""

       val desk360SDKManager = Desk360SDKManager.Builder(context)
            .setAppKey("app key")
            .setAppVersion("app version")
            .setLanguageCode("your selected ISO 639-1 Code for language: tr, en")
            .setPlatform("mobile platform: Platform.GOOGLE or Platform.HUAWEI")
            .setCountryCode("country code: tr, de")
            .setCustomJsonObject("for custom data")
            .build()

       desk360SDKManager.initialize(
             notificationToken = "your firebase token",
             deviceId = "your Android device id"
       )

        Desk360SDK.start()
        finish()

Language

If you don't want to use custom language then you must set to "" , desk360 sdk will use your Android device language

ProGuard

If you are using proguard you must add this rules to avoid further compile issues.

-keep class com.teknasyon.desk360.model.** { *; }
-keepnames class com.teknasyon.desk360.model.** { *; }
-keep class com.teknasyon.desk360.modelv2.** { *; }
-keepnames class com.teknasyon.desk360.modelv2.** { *; }

Support

For further information, please with contact us support@desk360.com

Visit our GITHUB page for usage, technical setup and detailed info.

Last updated