Skip to main content
Version: 5.21.0

Demo application

The demo application source code is available on GitHub: edna-ru/cc-android-demo.

tip

If the SDK doesn't work in your application, check the behavior in the demo. This helps tell whether the problem is in the SDK or in your project's settings.

What the demo contains

FeatureFile / resource in demo
SDK initializationapp/src/main/java/edna/chatcenter/demo/integrationCode/EdnaChatCenterApplication.kt
Server configuration loading from JSONapp/src/main/java/edna/chatcenter/demo/appCode/business/ServersProvider.kt
Server list and hostsapp/src/main/assets/servers_config.json
Start screen and chat entry pointapp/src/main/java/edna/chatcenter/demo/appCode/fragments/StartChatFragment.kt
Chat container (Fragment with "Start / Chat / Log" tabs)app/src/main/java/edna/chatcenter/demo/integrationCode/fragments/chatFragment/ChatAppFragment.kt
Push notifications (FCM)app/src/main/java/edna/chatcenter/demo/appCode/push/CustomPushFcmIntentService.kt
Push notifications (HMS, Huawei)app/src/main/java/edna/chatcenter/demo/appCode/push/CustomPushHcmIntentService.kt
Theme (light/dark)EdnaChatCenterApplication.kt
LoggingEdnaChatCenterApplication.kt

Running the demo

  1. Clone the repository and check out the tag matching your SDK version:

    git clone https://github.com/edna-ru/cc-android-demo.git
    cd cc-android-demo
    git checkout YOUR_SDK_VERSION

    Tag names match SDK versions. Full list: https://github.com/edna-ru/cc-android-demo/tags.

  2. Open the project in Android Studio.

  3. Set your threadsGateProviderUid and server URLs in app/src/main/assets/servers_config.json. Field format: name, threadsGateProviderUid, serverBaseUrl, datastoreUrl, threadsGateUrl, optionally trustedSSLCertificates — an array of file names in res/raw without extension.

  4. Run the application on a device or emulator.