Skip to content

docs(android): Chat SDK 5.1.2 changes and version bump - #629

Closed
adityagokula2210 wants to merge 1 commit into
mainfrom
docs/android-sdk-5.1.2
Closed

adityagokula2210 wants to merge 1 commit into
mainfrom
docs/android-sdk-5.1.2

Conversation

@adityagokula2210

Copy link
Copy Markdown
Contributor

Brings the Android Chat SDK v5 pages in line with SDK 5.1.2.

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

Merge when Android Chat SDK 5.1.2 is published.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@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 23, 2026, 12:08 PM

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

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

LGTM. Approving. Hold the merge until Android Chat SDK 5.1.2 is published, as the description says.

Checked:

  • Build is safe: no files removed or renamed, 0 unresolved nav refs, 0 broken internal links in the changed files. Mintlify deployment and link-rot checks pass.
  • No chat-sdk-android:5.1.0 pins left anywhere under sdk/android/v5/. The "5.1.0 or later" minimum is kept.
  • The pin/save "fires on the acting device" wording is gone from every page, including real-time-listeners and the Android UI Kit conversations page. The new wording is consistent across pin-message, save-message and pin-conversation.
  • The media budget change matches across offline-send (both the reason table and the queue section) and offline-media-caching. The null id wording for ERROR_OFFLINE_MESSAGE_NOT_FOUND matches across offline-send and offline-reference.

Non-blocking nits:

  1. offline-send.mdx:353: queued media no longer counts toward the budget and LRU media is evicted first. So BYTE_OVERFLOW now effectively means the file is bigger than the whole maxMediaCacheSize. The Flutter PR (#628) says that outright ("when it is larger than the whole maxMediaCacheSize budget"). Using the same wording here would make the condition clearer and keep the two SDKs aligned.
  2. The new notes tell readers to upgrade the Android UI Kit to 6.3.0, but the UI Kit pages (getting-started*, upgrading-from-v5, message-template, llms-android-v6) still pin 6.2.0. Worth a follow-up bump when UI Kit 6.3.0 ships.

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

🤖 Review Buddy (review-docs-pr)

Recommendation: request changes. Automated review; the final decision stays with a maintainer.

TL;DR: This PR changes text in 16 existing Android v5 pages. No pages move, so the structure is safe: 0 missing redirects, 0 broken navigation refs, 0 orphans, 0 broken links. I checked every behaviour claim against the Android Chat SDK release-v5-v5.1.2 commits, and each one matches a fix in that release: ENG-41096 (pin/save listeners no longer fire on the acting device), ENG-41097 (deleteGroup cache purge), ENG-41098 (overlapping fetchNext), ENG-41100 (null id), ENG-41102 (lastMessage status), ENG-41106 and ENG-41157 (media budget and LRU eviction), and ENG-41107 (page is saved only when it joins the cached range). Two things need fixing before merge. The new note tells readers to upgrade to a UI Kit version that doesn't exist yet. The overlapping-fetchNext sentence also contradicts the next rule on the same page.

P0

None.

P1

  1. The note asks readers to upgrade to Android UI Kit 6.3.0, which isn't released. See sdk/android/v5/pin-message.mdx:316-318, sdk/android/v5/pin-conversation.mdx:261-263 and sdk/android/v5/save-message.mdx:248-250. cometchat-team/uikit-android has no 6.3.0 branch or tag; the latest is v6.2.0. If this merges when SDK 5.1.2 ships but before UI Kit 6.3.0, readers are told to install a version they can't get. Also, SDK 5.1.2 no longer fires these callbacks on the acting device, so a UI Kit that relied on them would stop updating its own pins. Hold the merge until both releases are out (please add that to the PR body), or change the note to "the UI Kit release that supports SDK 5.1.2".
  2. The same page now contradicts itself. See sdk/android/v5/offline-cached-data.mdx:52-53. The new sentence says that an overlapping fetchNext() "returns an empty page at once, online or offline". The next bullet still says: "The server phase never fires offline. It fires only on a genuine server response." In the SDK (commit 8a0f8366), that empty page arrives through onServerConversations / onServerUsers, which is the server phase, and it arrives offline too. Name the callback, and add an exception to the "never fires offline" rule. Also tell readers that this empty page does not mean the end of the list, because pagination UIs usually stop on an empty server page. The same sentence appears in sdk/android/v5/block-users.mdx:269 and sdk/android/v5/retrieve-conversations.mdx:573.

P2

  1. Merge gate. cometchat/chat-sdk-android has no 5.1.2 GitHub release yet (latest is 5.1.1, 2026-11-09). sdk/android/v5/changelog.mdx redirects to that releases page. Before merging, check that the 5.1.2 artifact is published and that its release notes are live. Otherwise the install snippets point to a version that doesn't exist.
  2. Repeated text in the table. In sdk/android/v5/additional-message-filtering.mdx:1404-1405, the long setMessageId and setTimestamp rows say the same thing. Consider keeping "Cached" in both rows and moving the "shown, saved only when it joins the cached history" rule into one sentence below the table, like the setPinned/setSaved note.
  3. Wording. In sdk/android/v5/retrieve-conversations.mdx:408, the existing typo "Last message the conversation" should be "Last message of the conversation". The PR edits that row, so this is a good time to fix it.

Passed / skipped

  • ✅ Redirects: 0 files removed or renamed; redirect count unchanged (927 → 927).
  • ✅ Build: 0 navigation refs that don't resolve. Orphans: 0 in sdk/android/v5/.
  • ✅ Links: the new in-content links (/sdk/android/v5/offline-send, /sdk/android/v5/offline-cached-data) point to files that exist.
  • ✅ Version pins: every chat-sdk-android:x.y.z pin in sdk/android/v5 is now 5.1.2; the "5.1.0 or later" minimum is unchanged. llms-android-v5.mdx uses 5.+ and is fine.
  • ✅ No other v5 page still says the old things: "fires on the acting device", "queued media counts toward the budget" or "nothing is evicted". offline-reference.mdx:51 ("Media-only byte budget (LRU)") is consistent.
  • ✅ No images were added or changed. No TODOs or placeholders.
  • ⏭️ Build gate: not applicable (docs). The Mintlify preview deployment is 🟢 Ready.

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

✅ Approved via Review Buddy after an automated review (P0: 0 · P1: 2 · P2: 3).

Findings: #629 (review)

@adityagokula2210

Copy link
Copy Markdown
Contributor Author

Superseded by #634, which combines this PR with its Android counterpart unchanged (same commits, cherry-picked) now that Android Chat SDK 5.1.2 and Android UI Kit 6.3.0 are both published.

This branch was successfully deployed

1 active deployment
staging — 5a61b3eb Deployed Nov 23, 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.

3 participants