Repository navigation
docs(android): Chat SDK 5.1.2 and UI Kit 6.3.0 offline support - #634
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 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
left a comment
There was a problem hiding this comment.
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.
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>
|
@ketanyekale thanks for the review. All six points are addressed in 2bbba09:
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 |
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
left a comment
There was a problem hiding this comment.
Approved at Aditya Gokula's request on Slack. This approval was given on request; no code review was done for it.
ketanyekale
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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
#sectionanchors in the changed pages. - API names and string keys match the code:
setHideOfflineNotices(Kotlin, Conversations and Message List),hideOfflineNotices(Compose), bothCometChatOfflineRowStylepackages anddefault(...)signatures, the two theme attributes,CometChatEvents.offlineEvents,MessageSendStateChanged,OfflineCacheReset, all newcometchat_*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)
ui-kit/android/troubleshooting.mdx, last offline row: "Upgrading from 6.2.x" links to/ui-kit/android/overviewwithout the anchor. Use/ui-kit/android/overview#upgrading-from-62x.- 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, butguide-pin-and-save-messages.mdx(Live Updates, edited in this PR),pinned-messages.mdxandsaved-messages.mdxstill 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>
e63e3b3
|
@jitvarpatil thanks for the review. Fixed in e63e3b3:
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>
|
@jitvarpatil on point 2: real-time delivery of pin and save events to other users and devices is confirmed live. Fixed in e39c4d1:
The SDK pages already said this, so all five pages now agree. This needs a fresh approval. |
jitvarpatil
left a comment
There was a problem hiding this comment.
Re-reviewed up to e39c4d1 (e63e3b3 and e39c4d1). All four points from my earlier review are fixed:
- Troubleshooting link now goes to
/ui-kit/android/overview#upgrading-from-62x, which matches the heading. - Pin/save live delivery:
guide-pin-and-save-messages.mdx,pinned-messages.mdxandsaved-messages.mdxnow agree with the SDK pages. Checked againstmaster-v6: the Pinned and Saved screens register their own SDKMessageListener(CometChatPinnedMessagesViewModel.kt:395,CometChatSavedMessagesViewModel.kt:150), so they update without a message list on screen. - Hidden notices: the new wording matches the code. A list with
hideOfflineNoticeson doesn't collect notices (CometChatConversations.kt:598,CometChatMessageList.kt:1966), so a notice waits for a list that shows them. setMessageId/setTimestamp: both rows read "Cached", with one shared note under the table.
Approving.
raj-dubey1
left a comment
There was a problem hiding this comment.
Approved at Aditya Gokula's request on Slack. This approval was given on request; no code review was done for it.
ketanyekale
left a comment
There was a problem hiding this comment.
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-messagesandsaved-messagesnow say changes from other users and devices arrive in real time. That matches the SDK pages. I found no "pending rollout" wording left underui-kit/androidorsdk/android/v5. - Hide offline notices: the offline page and the
conversations.mdxrow 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.
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)
onSuccess. Adds a note that Android UI Kit users should upgrade to 6.3.0 with SDK 5.1.2.BYTE_OVERFLOWonly if the file still cannot fit. Media of queued messages does not count toward the budget.ERROR_OFFLINE_MESSAGE_NOT_FOUNDnow also covers anullid.maxMediaCacheSize.ERROR_OFFLINE_MESSAGE_NOT_FOUNDalso covers anullid.fetchNext()on aConversationsRequestorBlockedUsersRequestmade while the first is still loading returns an empty page at once, online or offline.lastMessagecarriesPENDING/FAILEDstatus for a message that has not been sent yet.deleteGroup()succeeds, the group's conversation, messages, media, queued messages, pins and saved messages are removed from the cache.setMessageId/setTimestamprows to the offline table. The server page is shown, and is saved to the cache only when it connects to the cached history.5.1.2. The "5.1.0 or later" minimum stays.Android UI Kit 6.3.0 (from #631)
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 withUIKitSettingsBuilder().setOfflineConfig(...), how each component behaves offline, the offline texts and their string keys,onErrorrules, send completions, pin and save updates,CometChatEvents.offlineEvents, styling and hiding notices, what changes with offline support turned off, and limitations.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.Added in this PR
fetchNext()gets while the first is loading comes through the server phase (onServerConversations,onServerUsersoronServerGroups), online or offline. The page now states it as the one exception to "the server phase never fires offline", coversUsersRequestandGroupsRequesttoo (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