Skip to main content
Version: 5.9.0

Demo app

The demo app is a ready-made project that demonstrates the recommended way to integrate the SDK. Download: ChatCenterDemo.

Setup and launch instructions are in the Quick start section.

Features

  • Server selection — switch between servers from the UI or configure them in Resources/servers.json
  • User management — add, select, and remove test users
  • SDK settings — a panel with toggles: search, voice messages, link previews, WebSocket mode, and other ChatConfig parameters
  • Themes — switch between system, custom, and extended themes
  • Localization — change the UI language (Russian, English, Kazakh)
  • Message prefill — demonstration of prefill(message:)
  • Push notification handling — opening the chat from a push

Key files

FilePurpose
MainViewController.swiftMain flow: SDK initialization, authorization, opening the chat
MainViewController+Custom.swiftTargeted customization (minimal set of theme changes)
MainViewController+Full.swiftFull custom theme — example of comprehensive restyling
MainViewController+UI.swiftLayout of the demo main screen (UIKit layout, not part of the SDK)
Resources/servers.jsonServer configuration
AppDelegate.swiftPush notification and device token handling

Using for debugging

If your application has issues with the SDK, the demo app helps isolate the cause:

  1. Reproduce the problem in the demo — if it reproduces, the cause is in the SDK or on the server.
  2. If the demo has no problem, the cause is in your project settings or integration approach.
The demo project speeds up diagnostics

For complex scenarios, configure the demo app to reproduce the error and send it to us at support@edna.io — this speeds up diagnostics.