Repository navigation
docs(ENG-57593): offline support for the iOS UI Kit - #612
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WEaVigCRBjkftm78T25MQA
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
…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>
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
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
|
Pushed
🤖 Generated with Claude Code |
jitvarpatil
left a comment
There was a problem hiding this comment.
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.swiftdeclaresfrom: "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 12CometChatOfflineStyleproperties and defaults match the table),ccMessageSendStateChanged/ccOfflineCacheReset,CometChatMessageSendState, andset(onError:)onCometChatSearchand the reaction list. - Chat SDK API names (4.2.1 xcframework; checksum matches
Package.swift):OfflineConfig(enabled:),OfflineConfig.Builder,initFromSettings(offlineConfig:…),offlinePendingCountUnknown,MessageFailureReasonandOfflineCacheResetReason. - 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:
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.offline-support.mdxsays 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.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.sdk/ios/setup.mdx, already like this onmain: the page now offers Swift Package Manager from 4.2.1 next to a CocoaPods tab pinned to exactly4.1.0. A one-line note that the pod stops at 4.1.10 would help.
Update 24 Nov (review follow-up)
main(ec1e3dfe) by merging it in, not rebasing, so the signed history is kept.CometChatSDKpod stops at 4.1.10 — nothing has been published to CocoaPods trunk since — sosdk/ios/setup.mdx,marking-delivered-with-push-notification.mdx,remove-delivered-notifications.mdxandupgrading-from-v3-to-v4.mdxgo back to the versions the pod actually has.sdk/ios/offline-enable.mdxnow 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.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.ERROR_QUEUE_FULL,ERROR_QUEUE_OVERFLOWandERROR_OFFLINE_MEDIA_BYTE_OVERFLOWall 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 onmaintoo.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:
mainChanges
First commit (
8df54dac, 16 Nov)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:CometChatUIKit.sendTextMessage,sendCustomMessage,sendFormMessage,sendCardMessageandsendSchedulerMessage.onError. The standard composer keeps the edit; the compact composer leaves edit mode when you tap Send.file://or absolute-path link in another user's message is never opened, shown or shared, and bubble downloads move toDocuments/cc_media/.methods.mdx:setOfflineConfig(_:)row in the UIKitSettings table.ERROR_OFFLINE_MESSAGE_DISCARDED).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,CometChatSearchhasset(onError:). The page used to say it had noonError.events.mdx:ccMessageSendStateChangedandccOfflineCacheReset.localize.mdx: a link to the offline texts table.message-list.mdxandconversations.mdx: thehideOfflineNoticesproperty.message-composer.mdxandcompact-message-composer.mdx: "Sending while offline".threaded-messages-header.mdx,message-bubble-styling.mdxandcore-features.mdx: one line each.guide-threaded-messages.mdx: the "Offline mode" edge-case row now matches the offline page.Checks run
node -e "JSON.parse(require('fs').readFileSync('docs.json'))"mint broken-links, compared with the same run on the branch before this updatemainremain:/llms.txtand/llms-full.txtindesign-system.mdxandllms-index.mdx2162bd47) and Chat SDK (c158761a) sourcesTests
Risk and rollback
Release notes
Version: n/a (docs)
QA notes
mint devand open/ui-kit/ios/offline-support,/ui-kit/ios/methods#enable-offline-supportand/ui-kit/ios/search.Provenance
Agent-built with Claude Code for Raj Dubey. A human review is still needed before merge.
Needs confirmation / known gaps
Package.swiftstill declaresfrom: "4.2.0", but the UI Kit callsinitFromSettings(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.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.docs/uikit-offline-ios(the existing PR branch), notdocs/ENG-57593-…. The first commit (8df54dac) has no ticket ID. It was not rewritten, to avoid a force-push.podline).notSentYetTextColorandnotSentYetTextFontare 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:).search.mdxdocumentsonBack, whichCometChatSearchdoesn't have.localize.mdxsays 17 languages; the UI Kit ships 19.methods.mdxUIKitSettings table uses method names that don't match the UI Kit (setAIFeatures,setExtensions,setAutoEstablishSocketConnection).core-features.mdx→message-bubble-styling#file-bubble, andsearch.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-v5d4d643870(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). WithenableMultipleAttachments = false, or throughCometChatUIKit.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: theinitFromSettings(offlineConfig:…)sentence, and "Saved rows show first" became "Rows cached on the device show first".🤖 Generated with Claude Code