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
ChatConfigparameters - 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
| File | Purpose |
|---|---|
MainViewController.swift | Main flow: SDK initialization, authorization, opening the chat |
MainViewController+Custom.swift | Targeted customization (minimal set of theme changes) |
MainViewController+Full.swift | Full custom theme — example of comprehensive restyling |
MainViewController+UI.swift | Layout of the demo main screen (UIKit layout, not part of the SDK) |
Resources/servers.json | Server configuration |
AppDelegate.swift | Push notification and device token handling |
Using for debugging
If your application has issues with the SDK, the demo app helps isolate the cause:
- Reproduce the problem in the demo — if it reproduces, the cause is in the SDK or on the server.
- 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.