Skip to content

Docs: Offline Support for JavaScript, React Native & iOS SDKs - #587

Closed
raj-dubey1 wants to merge 1 commit into
mainfrom
docs/offline-support-js-rn-ios-sdk
Closed

raj-dubey1 wants to merge 1 commit into
mainfrom
docs/offline-support-js-rn-ios-sdk

Conversation

@raj-dubey1

Copy link
Copy Markdown
Contributor

Summary

Public docs for offline support in the JavaScript, React Native, and iOS Chat SDKs, documented as a GA release (SDK only, no UI Kit). Companion to the Android PR #584; same structure, each grounded in its own SDK's real API.

New: "Offline Support" group (8 pages) under each SDK (SDKs → JavaScript / React Native / iOS, after Messaging):

  • offline-overview — what it does and the cached-then-server flow
  • offline-enable — turning it on and verifying it is active
  • offline-cached-data — the two-phase (onCached… → onServer… → onError) read contract and which filters are server-only
  • offline-send — the durable outbox, pending status, and failure/retry
  • offline-sync — reconnect catch-up, cache resets, logout
  • offline-media-caching — media cache modes and limits
  • offline-encryption — the encrypted local store
  • offline-reference — config, methods, listeners, enums, error codes

Plus the nav entries in docs.json (24 new page refs, 8 per SDK).

Source of truth & versions

Each SDK's offline branch (merged into temp/offline-release-2026-10-26, including the latest Android-parity fixes), cross-checked against Android release-v5-v5.1.0 and the offline conformance spec. Every API name and default was verified against that SDK's code — the docs are not a port of Android's names:

  • JavaScript 4.3.0 — setOfflineConfig({enabled:true}), handler-object listeners, Promises reject while offline (.catch()), browser (IndexedDB/OPFS) + Electron (SQLite).
  • React Native 4.2.0 — getMessageStatus(), onError(error, reason?), op-sqlite / react-native-fs / react-native-keychain, SQLCipher opt-in.
  • iOS 4.3.0 — Swift closures for reads, ConversationDetailsListener protocol, messageStatus, bundled SQLCipher.

Version numbers reflect each repo's current package.json/project version; confirm at release.

Scope

This PR is the 8 new offline pages per SDK + nav. The existing-page two-phase-listener examples (which the Android PR #584 also included across ~24 pages) are a separate mechanical follow-up per SDK.

Review notes

Reviewing the Android PR #584 surfaced a few issues worth fixing there (not in this PR): the offline-send "Queued, Not Failed" code sample references message.getStatus() where message isn't in scope (independently caught against all three SDKs); offline-cached-data promises a per-builder filter matrix that offline-reference doesn't contain; and getCacheSize is described two ways. This PR's per-SDK pages address those in their own copy.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XbguTw81eW7rnAGv6AksM8

New Offline Support group (8 pages) under each of JavaScript, React Native and
iOS (after Messaging), documenting the offline SDK as a GA release — enable,
cached-then-server reads, the durable send outbox, reconnect sync, media
caching, cache encryption, and a full config/API reference. Grounded in each
SDK's real public offline API (not a port of Android's symbol names) and
cross-checked against Android release-v5-v5.1.0 and the conformance spec.

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

mintlify Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

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

Project Status Preview Updated
cometchat 🟢 Ready View Preview Oct 30, 2026, 5:49 AM

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

@raj-dubey1

Copy link
Copy Markdown
Contributor Author

Superseded by per-SDK PRs: #588 (JavaScript), #589 (React Native), #590 (iOS) — one branch/PR per SDK.

@raj-dubey1 raj-dubey1 closed this Oct 30, 2026
@raj-dubey1
raj-dubey1 deleted the docs/offline-support-js-rn-ios-sdk branch October 30, 2026 05:50

This branch was successfully deployed

1 active deployment
staging — d2c432a6 Deployed Oct 30, 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.

1 participant