Skip to content

docs(android): Chat SDK 5.1.2 and UI Kit 6.3.0 offline support - #634

Merged
ketanyekale merged 8 commits into
mainfrom
docs/android-sdk-5.1.2-uikit-6.3.0
Nov 24, 2026
Merged

ketanyekale merged 8 commits into
mainfrom
docs/android-sdk-5.1.2-uikit-6.3.0

Conversation

@adityagokula2210

@adityagokula2210 adityagokula2210 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Android docs for the offline release, now that both are live: Android Chat SDK 5.1.2 and Android UI Kit 6.3.0 (both on CloudSmith). This PR combines #629 and #631 unchanged, so they can merge together. Three commits cherry-picked as they were reviewed (no file is touched by both), plus one fix below.

Android Chat SDK 5.1.2 (from #629)

  • pin-message, save-message, pin-conversation: the pin, save and conversation-pin callbacks now fire only for actions by other users or from the user's other devices. The acting device updates its UI from onSuccess. Adds a note that Android UI Kit users should upgrade to 6.3.0 with SDK 5.1.2.
  • real-time-listeners: the six pin/save listener rows now say they do not fire on the device that performed the action.
  • offline-send: a media send that is over budget first evicts the least recently used cached media, and fails with BYTE_OVERFLOW only if the file still cannot fit. Media of queued messages does not count toward the budget. ERROR_OFFLINE_MESSAGE_NOT_FOUND now also covers a null id.
  • offline-media-caching: media of queued messages does not count toward maxMediaCacheSize.
  • offline-reference: ERROR_OFFLINE_MESSAGE_NOT_FOUND also covers a null id.
  • offline-cached-data, retrieve-conversations, block-users: a second fetchNext() on a ConversationsRequest or BlockedUsersRequest made while the first is still loading returns an empty page at once, online or offline.
  • retrieve-conversations: lastMessage carries PENDING / FAILED status for a message that has not been sent yet.
  • delete-group: after deleteGroup() succeeds, the group's conversation, messages, media, queued messages, pins and saved messages are removed from the cache.
  • additional-message-filtering: adds setMessageId / setTimestamp rows to the offline table. The server page is shown, and is saved to the cache only when it connects to the cached history.
  • setup, overview, upgrading-from-v4, offline-enable: the example dependency is now 5.1.2. The "5.1.0 or later" minimum stays.

Android UI Kit 6.3.0 (from #631)

  • New page: ui-kit/android/offline-support.mdx (added to the Features → Chat nav). It covers both kits, Kotlin (XML Views) and Jetpack Compose, with tabs where the API differs: requirements, enabling with UIKitSettingsBuilder().setOfflineConfig(...), how each component behaves offline, the offline texts and their string keys, onError rules, send completions, pin and save updates, CometChatEvents.offlineEvents, styling and hiding notices, what changes with offline support turned off, and limitations.
  • Version bumps: UI Kit 6.2.0 → 6.3.0 in the dependency lines and the "Latest versions" line; the Chat SDK the kit brings in is now 5.1.2 (overview.mdx). Lines that read as the current version but still hold ("builds without Jetifier", "calls a Compose 1.8 API") now say "6.2.0 and later". "Before 6.2.0" history lines and Calls SDK 5.1.0 lines are unchanged.
  • Per-page notes: short offline notes, each linking to the new page, on getting started (all three pages), overview, core features, methods, events, localize, message list, message composer, conversations, the pin and save guide and the LLM index.

Added in this PR

  • offline-cached-data, retrieve-conversations, block-users: fixes the contradiction the automated review found on docs(android): Chat SDK 5.1.2 changes and version bump #629. The empty page a second fetchNext() gets while the first is loading comes through the server phase (onServerConversations, onServerUsers or onServerGroups), online or offline. The page now states it as the one exception to "the server phase never fires offline", covers UsersRequest and GroupsRequest too (same behaviour since 5.1.0), and says the empty page is not the end of the list.

Merge

Both releases are published, so there is no hold. #629 was approved by ketanyekale and jitvarpatil before this merge; #631 had not been reviewed yet.

🤖 Generated with Claude Code

adityagokula2210 and others added 3 commits November 24, 2026 01:20
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 5a61b3e)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit dfb92b7)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 2824e03)
@mintlify

mintlify Bot commented Nov 23, 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, 11:38 AM

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

…eption

offline-cached-data said a second fetchNext() made while the first is loading
returns an empty page offline, and in the next bullet that the server phase
never fires offline. In SDK 5.1.2 that empty page is delivered through the
server phase (onServerConversations / onServerUsers / onServerGroups), online
or offline, on ConversationsRequest, UsersRequest, GroupsRequest and
BlockedUsersRequest. State it as the one exception, name the callbacks, and
say the empty page is not the end of the list. retrieve-conversations and
block-users name their callback and carry the same paging note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@ketanyekale ketanyekale left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Review of the Android 5.1.2 / 6.3.0 docs: 2 things to fix before merge (media-limit wording, error-code comparison in the sample), plus a few nits. Anchors and cross-page links I checked all resolve.

Comment thread sdk/android/v5/offline-send.mdx Resolved
Comment thread ui-kit/android/offline-support.mdx Resolved
Comment thread sdk/android/v5/real-time-listeners.mdx Resolved
Comment thread sdk/android/v5/delete-group.mdx Resolved
Comment thread ui-kit/android/offline-support.mdx Resolved
Fix the media budget wording, compare the discarded-send code with the
constant, make the offline snippets compile, mark the pin/save listener
rows as 5.1.2, cover other devices in delete-group, and fix 11 claims on
the UI Kit offline page found by checking it against the shipped kits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adityagokula2210

Copy link
Copy Markdown
Contributor Author

@ketanyekale thanks for the review. All six points are addressed in 2bbba09:

  1. Media budget (offline-send.mdx): reworded. Old media is evicted to make room; if the file can't fit even after evicting all the media the SDK is allowed to evict (for example, it's larger than the whole budget), the send is refused up front and nothing is evicted.
  2. Discarded-send check (offline-support.mdx): now compares with CometChatConstants.Errors.ERROR_OFFLINE_MESSAGE_DISCARDED. (The constant's value is that same string, so the old check did match, but the constant is the right pattern.)
  3. Listener tables: the pin, save and conversation-pin rows now say "from 5.1.2".
  4. Delete group: added a line for other devices: the group leaves their cache when a later reconnect catch-up no longer finds it.
  5. "skips" → "skip" in both getting-started pages.
  6. Snippets: added the missing imports (Log, lifecycleScope, launch, Composable, LaunchedEffect, Color in both style samples, and Compose CometChatMessageList) and a TAG constant.

The same commit also corrects a few claims on the UI Kit offline page after checking it against the released 6.3.0 kits: keyword search offline, AI Assistant history, which notices move to another list when hidden, the reaction list reloading on reconnect, when onError fires, the media-caching condition, and the missing-file tray tile. Ready for another look.

Fix the cache-filter contradiction, add the overlapping-fetchNext note
to users and groups, add an Upgrading from 6.2.x block and offline
troubleshooting rows, note that custom repositories get no saved data,
cover loginWithAuthToken, and add the thread header reply-count note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
raj-dubey1
raj-dubey1 previously approved these changes Nov 24, 2026

@raj-dubey1 raj-dubey1 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.

Approved at Aditya Gokula's request on Slack. This approval was given on request; no code review was done for it.

ketanyekale
ketanyekale previously approved these changes Nov 24, 2026

@ketanyekale ketanyekale left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Re-reviewed up to e0f0596. All six points from my earlier review are fixed: the media-limit wording, CometChatConstants.Errors.ERROR_OFFLINE_MESSAGE_DISCARDED, "from 5.1.2" on the listener rows, the other-devices clause in delete-group, "skip", and the snippet imports. The follow-up changes (the overlapping-fetchNext() note on users and groups, Upgrading from 6.2.x, troubleshooting rows, the custom-repository note, loginWithAuthToken, the thread reply count) are consistent with the SDK pages, and the link-rot check passes. Approving.

One optional nit, not blocking: the last troubleshooting row links to "Upgrading from 6.2.x" as /ui-kit/android/overview without an anchor. /ui-kit/android/overview#upgrading-from-62x would land on the section.

jitvarpatil
jitvarpatil previously approved these changes Nov 24, 2026

@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.

Reviewed against the released code (UI Kit master-v6, which uses Chat SDK 5.1.2, and Chat SDK master-v5). Approving: nothing blocks the merge.

Checked and fine

  • Every navigation entry resolves; the new page is under Features → Chat. No pages removed or renamed, so no redirects are needed.
  • No broken links or #section anchors in the changed pages.
  • API names and string keys match the code: setHideOfflineNotices (Kotlin, Conversations and Message List), hideOfflineNotices (Compose), both CometChatOfflineRowStyle packages and default(...) signatures, the two theme attributes, CometChatEvents.offlineEvents, MessageSendStateChanged, OfflineCacheReset, all new cometchat_* keys, CometChatConstants.Errors.ERROR_OFFLINE_MESSAGE_DISCARDED, OfflineCacheResetListener.PENDING_COUNT_UNKNOWN = -1, CometChat.isOfflineEnabled().
  • Versions are consistent (UI Kit 6.3.0, Chat SDK 5.1.2, Calls SDK 5.1.0), and the pin/save callback change and the overlapping-fetchNext() rule read the same on every page.

Small fixes (can follow up)

  1. ui-kit/android/troubleshooting.mdx, last offline row: "Upgrading from 6.2.x" links to /ui-kit/android/overview without the anchor. Use /ui-kit/android/overview#upgrading-from-62x.
  2. Pin/save delivery to other devices: the SDK pages (pin-message, save-message) now say the callbacks fire for other users and the user's other devices, but guide-pin-and-save-messages.mdx (Live Updates, edited in this PR), pinned-messages.mdx and saved-messages.mdx still say that delivery waits on a server-side rollout. This was already there before the PR. Please confirm whether the server delivery is live and align the pages either way.

Nits
3. offline-support.mdx, "Hide offline notices": "go to another list that shows notices" is vague, and conversations.mdx lists "unsent messages that were lost" as a notice it hides. One sentence on where that notice goes when Conversations hides it would help.
4. additional-message-filtering.mdx: the setMessageId and setTimestamp rows repeat the same long sentence; one shared note under the table would read better.

- troubleshooting: link straight to the Upgrading from 6.2.x section
- offline-support, conversations: say where hidden notices that aren't about one chat show
- additional-message-filtering: one shared note for setMessageId / setTimestamp

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adityagokula2210

Copy link
Copy Markdown
Contributor Author

@jitvarpatil thanks for the review. Fixed in e63e3b3:

  1. Troubleshooting link: now points to /ui-kit/android/overview#upgrading-from-62x.

  2. Hide offline notices: offline-support.mdx and the conversations.mdx row now say where these notices go. Notices that aren't about one chat show once, on the next Conversations or Message List that doesn't hide notices. If every list hides them, they aren't shown. This matches the code: a list that hides notices never takes one, so the notice waits for a list that shows notices.

  3. setMessageId / setTimestamp: both rows now read "Cached", with one shared note under the table.

  4. Pin/save delivery to other devices: open until the backend team confirms whether real-time delivery is live. Chat API emits the pin and save events, but delivery happens in the websocket service, so I can't confirm it from the API code. Once they confirm, I'll align guide-pin-and-save-messages.mdx, pinned-messages.mdx and saved-messages.mdx with the SDK pages in one follow-up.

The push dismissed the earlier approvals, so this needs a fresh approval to merge.

…ve live

The UI Kit pages said real-time delivery of pin and save events was pending
rollout. It is live, and the Pinned and Saved Messages screens and the message
list already update from it, so the pages now say so and match the SDK pages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adityagokula2210

Copy link
Copy Markdown
Contributor Author

@jitvarpatil on point 2: real-time delivery of pin and save events to other users and devices is confirmed live. Fixed in e39c4d1:

  • pinned-messages.mdx and saved-messages.mdx: changes from other participants and from the user's other devices now update the list live. Both screens subscribe to the SDK callbacks themselves, so this works without a message list on screen.
  • guide-pin-and-save-messages.mdx (Live Updates): the "pending rollout" sentence is replaced. Custom UI should use the UI Kit events for this device's own changes and the SDK callbacks for changes from other users and devices.

The SDK pages already said this, so all five pages now agree. This needs a fresh approval.

@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.

Re-reviewed up to e39c4d1 (e63e3b3 and e39c4d1). All four points from my earlier review are fixed:

  1. Troubleshooting link now goes to /ui-kit/android/overview#upgrading-from-62x, which matches the heading.
  2. Pin/save live delivery: guide-pin-and-save-messages.mdx, pinned-messages.mdx and saved-messages.mdx now agree with the SDK pages. Checked against master-v6: the Pinned and Saved screens register their own SDK MessageListener (CometChatPinnedMessagesViewModel.kt:395, CometChatSavedMessagesViewModel.kt:150), so they update without a message list on screen.
  3. Hidden notices: the new wording matches the code. A list with hideOfflineNotices on doesn't collect notices (CometChatConversations.kt:598, CometChatMessageList.kt:1966), so a notice waits for a list that shows them.
  4. setMessageId / setTimestamp: both rows read "Cached", with one shared note under the table.

Approving.

@raj-dubey1 raj-dubey1 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.

Approved at Aditya Gokula's request on Slack. This approval was given on request; no code review was done for it.

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

@ketanyekale ketanyekale left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Re-reviewed up to e39c4d1 (e63e3b3f, e39c4d14). My optional nit is fixed: the troubleshooting link now goes to /ui-kit/android/overview#upgrading-from-62x. The other changes look right:

  • Pin/save live delivery: guide-pin-and-save-messages, pinned-messages and saved-messages now say changes from other users and devices arrive in real time. That matches the SDK pages. I found no "pending rollout" wording left under ui-kit/android or sdk/android/v5.
  • Hide offline notices: the offline page and the conversations.mdx row now agree on where notices that aren't about one chat go.
  • setMessageId / setTimestamp: the rows read "Cached", with one shared note under the table.

Link-rot passes. Approving again, since the push dismissed my earlier approval.

This branch was successfully deployed

1 active deployment
staging — e39c4d14 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