Skip to content

docs(ENG-57593): offline support for the iOS UI Kit - #612

Merged
ketanyekale merged 14 commits into
mainfrom
docs/uikit-offline-ios
Nov 24, 2026
Merged

ketanyekale merged 14 commits into
mainfrom
docs/uikit-offline-ios

Conversation

@raj-dubey1

@raj-dubey1 raj-dubey1 commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Update 24 Nov (review follow-up)

  • Branch brought up to date with main (ec1e3dfe) by merging it in, not rebasing, so the signed history is kept.
  • CocoaPods: every 4.2.1 pod bump reverted. The CometChatSDK pod stops at 4.1.10 — nothing has been published to CocoaPods trunk since — so sdk/ios/setup.mdx, marking-delivered-with-push-notification.mdx, remove-delivered-notifications.mdx and upgrading-from-v3-to-v4.mdx go back to the versions the pod actually has. sdk/ios/offline-enable.mdx now states that offline support needs iOS Chat SDK 4.2.1 installed with Swift Package Manager, with a note that new Chat SDK releases ship through SPM only, so offline support cannot be installed with CocoaPods. This resolves the open CocoaPods item.
  • Limitations carries scope only. Removed the send-with-no-answer, 10-second catch-up and unknown-failure-reason-after-restart entries; added the cache-scope line and "edits, deletes and reactions are not queued" (verified: MessageListViewModel.swift:1785, MessageList + Reactions.swift:105). Known issues are tracked in the kit's own release notes; the Android and Flutter offline pages list permanent scope only.
  • The encryption section is renamed What gets encrypted, as on Android, Flutter and React Native. Its old in-page link never resolved, because the rendered heading id keeps a typographic apostrophe.
  • Checked the error codes against the shipped 4.2.1 xcframework: ERROR_QUEUE_FULL, ERROR_QUEUE_OVERFLOW and ERROR_OFFLINE_MEDIA_BYTE_OVERFLOW all exist verbatim. No change needed.

Resolved from "Needs confirmation": iOS Chat SDK 4.2.1 and iOS UI Kit 5.3.0 are both released, so the version floor on the pages is final. The file count is now 50, not 16, after the pod reverts and the offline mentions across the iOS pages.

Checks: analyze_docs_pr.py --pr 612 --scope ui-kit/ios/ — 0 missing redirects, 0 chained 404s, 0 unresolved nav refs (no build break), 0 broken internal links in 60 scanned files; the 1 orphan is on main too.


Summary

Adds the iOS UI Kit Offline Support page and brings the rest of the iOS UI Kit v5 docs in line with it. The page was first written against an earlier UI Kit build. ENG-57593 rechecked every claim against the final offline sources, fixed what had changed, and added offline notes to the reference and component pages that never mentioned offline.

Ticket: ENG-57593
Parent: none
AI-DLC path: light (docs)
Base: main

Changes

First commit (8df54dac, 16 Nov)

  • New page ui-kit/ios/offline-support.mdx.
  • core-features.mdx: an Offline Support section.
  • docs.json: nav entry under iOS v5 → Features → Chat.
  • llms-ios-v5.mdx: link to the new page.

ENG-57593 update (19 Nov: 405c8ca2, a258495c, 525fef74, 3c7a6be7)

offline-support.mdx, corrected against the final UI Kit and Chat SDK sources:

  • Media. The page no longer promises that media is queued offline. Files picked in the attachment tray upload as soon as they're picked, so they need a connection. The page now says to send photos, videos, audio and documents while connected.
  • What queues. Text messages and voice notes queue. So do CometChatUIKit.sendTextMessage, sendCustomMessage, sendFormMessage, sendCardMessage and sendSchedulerMessage.
  • Failed edit, delete or reaction. The new notices are documented. A failed edit keeps the message's old text and calls onError. The standard composer keeps the edit; the compact composer leaves edit mode when you tap Send.
  • Unsent rows.
    • "Not sent yet" shows under a queued message.
    • VoiceOver reads the hint "Retry".
    • Tapping the clock of a queued message retries it.
    • Retry and Delete remove a message the SDK no longer holds.
  • Reaction list. It keeps its tabs while offline.
  • Presence. Presence is hidden while the SDK is connecting.
  • Logout and user switch. These delete the SDK's offline cache and the UI Kit's saved avatars. Avatars are kept up to 250 MB.
  • Notices table. The "where it appears" column is corrected.
  • Offline events. The wording is corrected.
  • Catch-up delay. Missed messages can take "up to about 10 s" to appear after a quick reconnect (was 15 s). This matches the SDK's sync interval.
  • Removed. The "queue-full refusal can show as pending first" limitation; the final SDK fixed it.
  • Added. The offline-off change for local media links: a file:// or absolute-path link in another user's message is never opened, shown or shared, and bubble downloads move to Documents/cc_media/.
  • SDK minimum. The requirement now reads: UI Kit 5.3.0, the first version with offline support, needs Chat SDK 4.2.1 or later.

methods.mdx:

  • A setOfflineConfig(_:) row in the UIKitSettings table.
  • A new "Enable offline support" section with a Swift example.
  • A quick-reference line.
  • A logout note (the offline cache is cleared and waiting sends are discarded with ERROR_OFFLINE_MESSAGE_DISCARDED).
  • A note on which send methods queue.

Other pages:

  • getting-started.mdx: an offline row in the quick reference, scoped to UI Kit 5.3.0+, and a tip in Step 4.
  • search.mdx: with offline on, CometChatSearch has set(onError:). The page used to say it had no onError.
  • events.mdx: ccMessageSendStateChanged and ccOfflineCacheReset.
  • localize.mdx: a link to the offline texts table.
  • message-list.mdx and conversations.mdx: the hideOfflineNotices property.
  • message-composer.mdx and compact-message-composer.mdx: "Sending while offline".
  • threaded-messages-header.mdx, message-bubble-styling.mdx and core-features.mdx: one line each.
  • guide-threaded-messages.mdx: the "Offline mode" edge-case row now matches the offline page.

Checks run

Command Result
node -e "JSON.parse(require('fs').readFileSync('docs.json'))" pass
mint broken-links, compared with the same run on the branch before this update no new broken links. 3 failures already on main remain: /llms.txt and /llms-full.txt in design-system.mdx and llms-index.mdx
Resolver for links and anchors on added lines 41 links checked, 0 broken
Swift shape check: every symbol, signature and localization key used on the changed pages, grepped in the UI Kit (2162bd47) and Chat SDK (c158761a) sources pass
Independent claim check against the same sources pass

Tests

  • Docs only, so there are no unit tests.
  • Swift snippets were checked against the source signatures, not compiled.

Risk and rollback

  • Risk: Low. Docs only, but customers see it as soon as it merges, so it should merge only when UI Kit 5.3.0 is released.
  • Public API: none.
  • Rollback: revert this PR.

Release notes

Version: n/a (docs)

  • New: iOS UI Kit Offline Support page
  • Enhancements: offline notes across the iOS UI Kit reference and component pages
  • Fixes: None

QA notes

  • Preview with mint dev and open /ui-kit/ios/offline-support, /ui-kit/ios/methods#enable-offline-support and /ui-kit/ios/search.
  • E2E specs: none.

Provenance

Agent-built with Claude Code for Raj Dubey. A human review is still needed before merge.

Needs confirmation / known gaps

  • Chat SDK minimum. The docs say UI Kit 5.3.0 needs Chat SDK 4.2.1 or later. The UI Kit's Package.swift still declares from: "4.2.0", but the UI Kit calls initFromSettings(offlineConfig:), which 4.2.0 doesn't have. Confirm the final UI Kit and Chat SDK versions before merge. Other pages still describe 5.2.x with Chat SDK 4.1.10+; that is a release-day update.
  • Programmatic sendMediaMessage. In the source it goes through the offline queue, but the docs deliberately don't promise queued media (no platform queues media picked offline). Confirm this wording.
  • Compact composer. A failed edit leaves the compact composer out of edit mode, while the standard composer keeps the edit. The docs describe both as they are in the code.
  • Branch name. The branch is docs/uikit-offline-ios (the existing PR branch), not docs/ENG-57593-…. The first commit (8df54dac) has no ticket ID. It was not rewritten, to avoid a force-push.
  • File count. 16 files, over the usual 10, because the ticket asks for offline mentions across the iOS UI Kit pages.
  • Still open from the first version:
    • CocoaPods (the page gives no pod line).
    • notSentYetTextColor and notSentYetTextFont are now used for the "Not sent yet" text (CometChatMessageList+Offline.swift:116-117), so they stay on the page.
    • CometChatUIKit.initFromSettings(offlineConfig:completion:) stays undocumented (:nodoc:).
  • Problems found on these pages but not fixed (out of scope):
    • search.mdx documents onBack, which CometChatSearch doesn't have.
    • localize.mdx says 17 languages; the UI Kit ships 19.
    • The methods.mdx UIKitSettings table uses method names that don't match the UI Kit (setAIFeatures, setExtensions, setAutoEstablishSocketConnection).
    • Two anchors don't resolve: core-features.mdx → message-bubble-styling#file-bubble, and search.mdx → message-list#itemview.

Update 20 Nov: checked against the iOS UI Kit (140b048f)

Every claim on the changed pages was checked against the iOS UI Kit at temp-release-offline-v5 d4d643870 (about 100 claims: APIs, settings, strings in all 19 locales, list states, events, styles, snippets and links). One gap was fixed: "media picked offline is not queued" is true only for the attachment tray (the default). With enableMultipleAttachments = false, or through CometChatUIKit.sendMediaMessage, a media message is queued like a voice note (MessageComposerBuilder.swift:50-53, CometChatUIKit.swift:579). The pages now say so. Two wordings were also tightened: the initFromSettings(offlineConfig:…) sentence, and "Saved rows show first" became "Rows cached on the device show first".

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WEaVigCRBjkftm78T25MQA
@mintlify

mintlify Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
cometchat 🟢 Ready View Preview Nov 24, 2026, 12:06 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

raj-dubey1 and others added 4 commits November 19, 2026 16:46
…5.3.0

Files picked in the attachment tray upload at once and are not queued;
only text, voice notes and single-file sends queue. Failed edits,
reactions and deletes now show a notice; the compact composer leaves
edit mode on Send. Adds "Not sent yet" under queued messages, Retry and
Delete removing a message the SDK no longer holds, the reaction list's
tabs, the avatar cache, the logout cache wipe, the media-link and
cc_media change, and corrects the notices table, presence, the event
wording and the catch-up delay (10 s in the SDK).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Methods documents UIKitSettings.setOfflineConfig(_:) with an example,
and what logout and the send methods do with offline on. Integration,
events, localize, search, message list, conversations, both composers,
the thread header and bubble styling get one line each with a link to
the offline page. Search no longer says it has no onError.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Photos, videos, audio files and documents are to be sent while
connected; the pages no longer say a picked file is queued. The methods
note now covers sendTextMessage and sendCustomMessage only and links to
the send-completions section for form, card and scheduler messages. The
threaded-messages guide's offline row now matches the offline page: the
composer stays enabled, text replies and voice notes queue, and edits,
deletes and reactions need a connection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
…every queuing send method

The offline page, methods, core features and integration now say that
UI Kit 5.3.0, the first version with offline support, needs Chat SDK
4.2.1 or later, so they no longer disagree with the 5.2.x numbers on
the other pages. The integration quick reference marks its offline row
as applying from 5.3.0. The offline page and methods now list
sendFormMessage, sendCardMessage and sendSchedulerMessage beside
sendTextMessage and sendCustomMessage as sends that queue offline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
@raj-dubey1 raj-dubey1 changed the title docs(ios): Offline Support for the iOS UI Kit docs(ENG-57593): offline support for the iOS UI Kit Nov 19, 2026
Checked against the iOS UI Kit at temp-release-offline-v5 d4d643870:
- Only files picked in the attachment tray (enableMultipleAttachments,
  the default) need a connection. With enableMultipleAttachments = false
  a pick is sent through sendSingleMedia -> MessageComposerBuilder
  .mediaMessage -> OfflineSend.send and is queued like a voice note
  (MessageComposerBuilder.swift:50-53; same in the compact composer).
- CometChatUIKit.sendMediaMessage also queues offline (CometChatUIKit
  .swift:579), so methods.mdx lists it and drops "send media while
  connected".
- initFromSettings(offlineConfig:...) is used by the kit's own
  initFromSettings, not by every init: reworded.
- "Saved rows show first" read as the Saved Messages component's rows:
  now "Rows cached on the device show first".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XbguTt1cqFxTDQyroF6wHx
The offline release ships the iOS UI Kit as a minor bump from the live
5.2.3 (-> 5.3.0) and the iOS Chat SDK as a patch from the live 4.2.0
(-> 4.2.1), so the docs that name those versions move with them.

sdk/ios: every offline minimum-version statement moves 4.2.0 -> 4.2.1
across the offline pages and the 18 feature pages that carry an offline
note. offline-sync and offline-media-caching had no minimum-version line
at all; both now carry one. The install instructions were far older than
offline and are brought to 4.2.1: setup.mdx (Podfile, the AI quick
reference and the SPM dependency rule) and upgrading-from-v3-to-v4.mdx
were pinned at 4.1.0, and the two push-notification extension pages at
4.0.67. The CometChatCallsSDK pins are untouched.

ui-kit/ios: the UI Kit version moves 5.2.3 -> 5.3.0 in every current
install instruction, and the CometChatSDK floor it resolves moves 4.1.10
-> 4.2.1, which is what Package.swift declares on the release branch
(`from: "4.2.1"`). The getting-started offline row no longer needs its
"the Dependencies row above is for the 5.2.x releases" caveat, since
that row now reads 4.2.1. campaigns.mdx said the CometChatSDK pod stops
at 4.1.9; CocoaPods trunk actually has 4.1.10, so that is corrected too.

Historical "available since" notes and the "CocoaPods stops at 5.1.18"
statements are untouched.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D7Ygtnje2DAqQ4FmgWhYnt
…fline docs

Public docs must not mention duplicate messages from offline sends, even
indirectly (Aditya, 23 Nov). Removes the lost-send-acknowledgement bullet
from "Limitations and known issues", and the
"so it never creates a duplicate" clause from the Retry bullet.

That clause was also factually wrong: delivery is at-least-once, so a retry
can duplicate (BEH-SEND-23, OutboxAckReconciler.swift:24-27).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D7Ygtnje2DAqQ4FmgWhYnt
…ne-off list

Review fixes on the iOS offline docs, checked against UI Kit 5.3.0 and aligned
with the Android and Flutter pages where those are the correct reference.

- offline-support.mdx:54 said standalone SDK offline needs 4.2.0, contradicting
  offline-enable.mdx:37 and the 15 other SDK pages this branch moves to 4.2.1.
- sdk/ios/offline-sync.mdx said the cooldown rejects a sync that "ended less
  than 15 seconds ago". The SDK's SweepThrottle uses a 10 s cooldown counted
  from when a sync starts; drop the number, as the Android and Flutter pages do.
- Add the three missing offline-off changes (conversation pin/unpin keeping the
  row, search no longer showing the previous query's results, saved-message
  rows named from the message).
- Give hideOfflineNotices its full list, as the Flutter page does, and correct
  the offlineStyle defaults sentence for the three jumpToLatest properties.
- Add an Offline Support section to troubleshooting, restore the offline-off
  case on guide-threaded-messages, give the two new event rows their
  signatures, and fix the unused windowScene binding in the SceneDelegate
  snippet.

CocoaPods install lines are left as they are: we no longer publish there, so
removing those sections is a separate change.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XbguTu9in5yKt5CNV4rjXF
…ly has, and carry scope only in the limitations list

The CometChatSDK pod stops at 4.1.10, so revert the 4.2.1 pod bumps and
install offline support through Swift Package Manager only.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XbguTu9in5yKt5CNV4rjXF
…nchor

Removed the 10-second catch-up and unknown-failure-reason-after-restart
items (known issues in the kit's release notes, not docs content), and
corrected the #what-is-and-isnt-encrypted anchor.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XbguTu9in5yKt5CNV4rjXF
…d, Flutter and React Native

The rendered id of "What is and isn't encrypted" keeps a typographic
apostrophe (verified on the live page: id="what-is-and-isn’t-encrypted"),
so the in-page link #what-is-and-isn-t-encrypted never resolved. Android,
Flutter and React Native already head this section "What gets encrypted";
the JavaScript and iOS pages now match, with the link text unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XbguTu9in5yKt5CNV4rjXF
The heading became "What gets encrypted" and the anchor was updated with
it, but the link text still read "What is and isn't encrypted". Same fix
as on the JavaScript page in #611.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XbguTu9in5yKt5CNV4rjXF
@raj-dubey1

Copy link
Copy Markdown
Contributor Author

Pushed 08b1fad7: the encryption section rename in this PR updated the heading and the anchor but left the link text reading "What is and isn't encrypted" at sdk/ios/offline-encryption.mdx:35. Link text now matches the heading. Same fix as on the JavaScript page in #611.

docs.json valid.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XbguTu9in5yKt5CNV4rjXF

@jitvarpatil jitvarpatil left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving. No blockers; four small nits below that can be fixed here or in a follow-up.

Structural checks (ui-kit/ios/ and sdk/ios/): no removed or renamed pages, so no redirects are needed; no broken navigation entries; no broken internal links (60 + 185 pages scanned). The only orphans, llms-ios-v5 and llms-ios-v4, are already orphaned on main.

Checked against the published releases:

  • Versions. UI Kit 5.3.0 and Chat SDK 4.2.1 are both released. The UI Kit's Package.swift declares from: "4.2.1", so "needs 4.2.1 even with offline off" is correct. The 4.2.1 changelog says offline support is new in that release, which supports the 4.2.0 → 4.2.1 change on the SDK pages.
  • UI Kit API names (5.3.0): setOfflineConfig(_:), hideOfflineNotices, CometChatMessageList.offlineStyle (all 12 CometChatOfflineStyle properties and defaults match the table), ccMessageSendStateChanged / ccOfflineCacheReset, CometChatMessageSendState, and set(onError:) on CometChatSearch and the reaction list.
  • Chat SDK API names (4.2.1 xcframework; checksum matches Package.swift): OfflineConfig(enabled:), OfflineConfig.Builder, initFromSettings(offlineConfig:…), offlinePendingCountUnknown, MessageFailureReason and OfflineCacheResetReason.
  • Texts. All 22 keys ship in all 19 locales, and the English values match the table.
  • Sync cooldown. "A sync started too recently" is right: the cooldown counts from when the last sync started, and it is now 10 s.
  • Pin and save callbacks. The acting device no longer gets a listener callback for its own pin or save. That change landed after 4.2.0, so "since 4.2.1" is accurate.

Nits:

  1. getting-started.mdx, the new Tip: "…available from UI Kit 5.3.0. UI Kit 5.3.0, the first version with offline support, needs…" says the same thing twice. Drop one.
  2. offline-support.mdx says an exact or up-to-next-minor pin on 4.1.x breaks package resolution. troubleshooting.mdx (correctly) says 4.1.x or 4.2.0. Add 4.2.0 to the offline page too.
  3. troubleshooting.mdx: the pin/save row isn't about offline support (it changed for everyone in 4.2.1). It would sit better in a general or messaging section.
  4. sdk/ios/setup.mdx, already like this on main: the page now offers Swift Package Manager from 4.2.1 next to a CocoaPods tab pinned to exactly 4.1.0. A one-line note that the pod stops at 4.1.10 would help.

@ketanyekale
ketanyekale merged commit d00c0c4 into main Nov 24, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
staging — 08b1fad7 Deployed Nov 24, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants