Imagine: your app has grown to 50+ screens, support is drowning in repetitive questions — 40% of tickets are about the same issue. Documentation is scattered across Google Docs, Confluence, and Jira. Customers leave because they can't find an answer in 2 minutes. A knowledge base (KB) solves this, but implementing it is more than just adding a search page. We'll explain how to design and deploy a mobile knowledge base that works offline, syncs with a CMS, provides instant FTS5 search, and delivers analytics. With over 10 years of engineering practice, we guarantee stable synchronization and fast search.
How Mobile Knowledge Base Architecture Works
Content Sources and Synchronization
The most versatile approach is a custom or headless CMS (Contentful, Strapi, Sanity) with REST/GraphQL API. The mobile client downloads articles on first launch and on updates, storing them in a local database. Synchronization uses updatedAt: on each launch, we download only articles changed since the last sync-timestamp. If the network is unavailable, changes accumulate and apply on next connection. Conflicts resolve by "last write wins". Typically 10–20 KB of data per update, which takes under a second on a stable connection.
// Android: Room schema for knowledge base articles @Entity(tableName = "kb_articles") data class KbArticle( @PrimaryKey val id: String, val title: String, val content: String, // Markdown or HTML val categoryId: String, val updatedAt: Long, val searchIndex: String // normalized text for FTS ) Integration with Zendesk Help Center / Freshdesk Solutions
If you already use Zendesk, the Help Center API provides articles directly. For custom design, we use Zendesk Guide API: GET /api/v2/help_center/articles.json. The response contains body in HTML — we render it via WebView with custom CSS matching the app's design system.
Why Local FTS Search Is Better Than Server-Side
Searching through a thousand articles on the server for each request adds unnecessary round-trips and network dependency. For mobile apps, local Full-Text Search (FTS5) is better. It works instantly, offline, and loads only the device.
| Platform | FTS Technology | Cyrillic Tokenizer |
|---|---|---|
| Android | Room FTS4 | unicode61 via FTS5 |
| iOS | SQLite FTS5 (GRDB.swift) | unicode61 |
| Cross-platform | SQLite FTS5 via dart:ffi | unicode61 |
Android — Room FTS4:
@Fts4(contentEntity = KbArticle::class) @Entity(tableName = "kb_articles_fts") data class KbArticleFts( val title: String, val searchIndex: String ) @Dao interface KbSearchDao { @Query("SELECT * FROM kb_articles WHERE id IN " + "(SELECT rowid FROM kb_articles_fts WHERE kb_articles_fts MATCH :query)") suspend fun search(query: String): List<KbArticle> } iOS — SQLite with FTS5 via GRDB.swift:
try db.create(virtualTable: "articles_fts", using: FTS5()) { t in t.column("title") t.column("body") t.tokenizer = .unicode61() } How to Ensure Offline Access and Analytics
Markdown/HTML Rendering
Articles are often stored in Markdown. We choose native libraries: Markwon for Android and Down for iOS. They support tables, code blocks with syntax highlighting, and images — sufficient for technical documentation. WebView provides full HTML/CSS but is slower for navigation. For basic Markdown on iOS 15+, you can use AttributedString without dependencies.
Offline Access
The knowledge base must work without internet. All articles are stored locally after first download. Images are cached using Kingfisher (iOS) or Coil (Android) with a max cache size of 200 MB. Data updates only when a network is available.
Analytics and Feedback
A "Was this helpful?" button provides simple feedback. We send an event with article_id and helpful: true/false to Firebase Analytics.
Analytics.logEvent("kb_article_feedback", parameters: [ "article_id": article.id, "helpful": isHelpful ? "yes" : "no", "time_spent_seconds": Int(Date().timeIntervalSince(openedAt)) ]) time_spent_seconds gives an extra signal: if a user reads for 3 seconds and clicks "not helpful" — the article is off-topic. If they spend 5 minutes and click "helpful" — the content is deep and relevant. This analytics helps improve documentation.
What's Included in the Work?
- Documentation: DB schema, API description, content update instructions.
- Access: test accounts for CMS, App Store Connect / Google Play Console.
- Source code: repository with the knowledge base module, test coverage 80%+.
- Training: workshop for the support team on content creation.
- Support: 2 weeks of free post-release assistance.
Development Stages and Timelines
| Stage | Duration | Result |
|---|---|---|
| Analysis | 1–2 days | Content inventory, source selection |
| Design | 2–3 days | DB schema, API, sync architecture |
| Implementation | 4–8 days | Code (Swift 5.9+ / Kotlin), FTS, CMS integration |
| Testing | 2–3 days | Verification on 10+ devices, including offline |
| Deployment | 1 day | Publishing, Firebase Crashlytics setup |
Development cost is calculated individually after audit. The time savings for users finding information pays off within the first month. We're ready to evaluate your project — contact us for a consultation. Order a turnkey knowledge base development and get a stable solution that improves user experience.







