icon-people 7 days of no-limit free trial. Try now! icon-people
en
ru

Chat2Desk SDK

The Chat2Desk SDK is a set of tools for integrating Chat2Desk online chat into third-party mobile applications. It runs on the online chat API (livechat-v2) and is available for Android and iOS.

What the SDK does

Through the SDK, your application retrieves the message list, sends messages and files, sends customer data, and keeps working in offline mode.

For the full list of methods, see the API References.

How it works

Server events are handled over a socket connection. On initialization, the SDK takes an authorization token for Chat2Desk servers and the address of the server it will work with; you can manage the connection state and get its status.

Internally, the SDK is split into a shared module with the business logic and platform-specific parts for Android and iOS. The shared module handles the server connection, message processing, socket events, and data storage; the platform-specific parts handle networking and database interaction on each OS. The Android SDK and iOS SDK are built with Kotlin Multiplatform and serve as the basis for embedding the SDK into any application.

Working without an internet connection

The message list and the service data the SDK needs are stored in the device's internal storage. What is stored locally is the minimum required for the chat to work in a mobile application.

Documentation

SDK setup by platform:

Release history on Changelog.

Related articles