Desk360 Docs
Search…
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.
1
maven {url 'https://jitpack.io'}
Copied!
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.
1
dependencies {
2
implementation 'com.github.Teknasyon-Teknoloji:desk360-android-sdk:latest_release'
3
}
Copied!
Desk 360 Android SDK Latest Release
Add Data and View Binding code block to your build.gradle(:app) file too.
1
apply plugin: 'kotlin-kapt' // or under plugins -> id 'kotlin-kapt'
2
​
3
android {
4
5
buildFeatures {
6
dataBinding true
7
}
8
}
Copied!

Usage

Start Desk360
1
import com.teknasyon.desk360.helper.Desk360Config
2
import com.teknasyon.desk360.helper.Desk360SDKManager
3
import com.teknasyon.desk360.helper.Platform
4
import com.teknasyon.desk360.helper.Desk360SDK
Copied!
1
val desk360SDKManager = Desk360SDKManager.Builder(context:Context)
2
.setAppKey("SDK_App_Key")
3
.setAppVersion("1.0.1")
4
.setLanguageCode("en")
5
.setPlatform(Platform.GOOGLE)
6
.setCountryCode("US")
7
.setCustomJsonObject(
8
JSONObject(
9
"{\n" +
10
" \"name\":\"AndoidSDK\",\n" +
11
" \"age\":30,\n" +
12
" \"cars\": {\n" +
13
" \"car1\":\"RED\",\n" +
14
" \"car2\":\"BLUE\",\n" +
15
" \"car3\":\"ORANGE\"\n" +
16
" }\n" +
17
" }"
18
)
19
)
20
.build()
21
​
22
desk360SDKManager.initialize("firebase notification token", "device id")
23
​
24
Desk360SDK.start()
Copied!
Parameters
Description
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

1
val desk360SDKManager = Desk360SDKManager.Builder(context)
2
.setAppKey("app key")
3
.setAppVersion("app version")
4
.setLanguageCode("your selected ISO 639-1 Code for language: tr, en")
5
.setPlatform("mobile platform: Platform.GOOGLE or Platform.HUAWEI")
6
.setCountryCode("country code: tr, de")
7
.setCustomJsonObject("for custom data")
8
.build()
9
​
10
desk360SDKManager.initialize(
11
notificationToken = "your firebase token",
12
deviceId = "your Android device id"
13
)
14
​
15
Desk360SDK.start()
16
finish()
Copied!

Open Desk360 without Notification Service

If your app will not use notification then you must set token "" and for targetId ""
1
val desk360SDKManager = Desk360SDKManager.Builder(context)
2
.setAppKey("app key")
3
.setAppVersion("app version")
4
.setLanguageCode("your selected ISO 639-1 Code for language: tr, en")
5
.setPlatform("mobile platform: Platform.GOOGLE or Platform.HUAWEI")
6
.setCountryCode("country code: tr, de")
7
.setCustomJsonObject("for custom data")
8
.build()
9
​
10
desk360SDKManager.initialize(
11
notificationToken = "your firebase token",
12
deviceId = "your Android device id"
13
)
14
​
15
Desk360SDK.start()
16
finish()
Copied!

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.
1
-keep class com.teknasyon.desk360.model.** { *; }
2
-keepnames class com.teknasyon.desk360.model.** { *; }
3
-keep class com.teknasyon.desk360.modelv2.** { *; }
4
-keepnames class com.teknasyon.desk360.modelv2.** { *; }
Copied!

Support

For further information, please with contact us [email protected]​
​
Visit our GITHUB page for usage, technical setup and detailed info.