Repository navigation
docs(flutter): offline support for Flutter SDK 5.1.0 - #593
Open
adityagokula2210 wants to merge 2 commits into
Open
adityagokula2210 wants to merge 2 commits into
adityagokula2210 wants to merge 2 commits into
Conversation
Add the 8 offline pages (overview, enable, cached data, send, sync, media caching, encryption, reference), two shared callouts, offline notes and two-phase listener samples on 31 existing v5 pages, the Offline Support nav group, and the llms list. Mirrors the Android SDK 5.1.0 offline docs; every API checked against the Flutter SDK release branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Send pages: tell queued from failed by ERR_CONNECTION and OfflineMessageListener.onOutboxMessageFailed; the passed-in message's status is not updated (send-offline page, send snippet, uploads, AI moderation). - Blocked users: a cached search filters by keyword on the device. - Media: expired URLs are re-signed on HTTP 403 or 410, not 401. - Threads: drop the uid+guid comparison with non-thread reads. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Public docs for offline support in the Flutter Chat SDK 5.1.0. They mirror the Android SDK 5.1.0 offline docs (#584): the same page set and structure, and the same wording where the behaviour is the same. Every API name, signature, default, enum value and error code was checked against the Flutter SDK release branch.
sdk/flutter/offline-{overview,enable,cached-data,send,sync,media-caching,encryption,reference}.mdxsnippets/sdk/flutter-offline-{listener,send}.mdxlistener:samples.cometchat_sdk: ^5.1.0, Dart 3.10+, Flutter 3.38+, iOS 13+, Android API 21+docs.json, plus the list inllms-flutter-v5.mdxWhere Flutter differs from Android
listener:parameter instead of a listener overload.onSuccess/onErrorkeep working and receive only the server result. The pages recommendlistener:and don't call the callbacks deprecated, because the SDK doesn't mark them deprecated.BlockedUsersFetchListener. A manual sync reports throughForceSyncListener.CometChatHelper.getMessageDetails.fetchNexthas a listener.listener:is never queued. To tell queued from failed, check for codeERR_CONNECTION(queued) and listen toOfflineMessageListener.onOutboxMessageFailed(failed).getLastSyncTimestamp()returns device-clock milliseconds, ornullif the cache has never synced.downloadMediaandgetCachedMediaPathtake aBaseMessage. Errors arrive as a typedMediaException.sqlite3mchook to its ownpubspec.yaml. Web also needssqlite3mc.wasm. The status object uses typed enums, and keys are stored per platform.null.Review
Five independent read-only reviewers checked the page groups against the Flutter SDK release branch. Their four confirmed findings are fixed in the second commit.
🤖 Generated with Claude Code