cometchat_sdk 5.1.1
cometchat_sdk: ^5.1.1 copied to clipboard
CometChat enables you to add voice, video & text chat for your website & app. This guide demonstrates how to add chat to an Flutter application using CometChat.
5.1.1 #
New
- None
Enhancements
- None
Fixes
- Fixed Android builds of apps using the SDK failing on Flutter 3.44 and later with unresolved reference errors, or with a JVM target mismatch (17 vs 21) on JDK 21.
Deprecations
- Deprecated the calling APIs in the Chat SDK, now that call ringing is handled by the Calls SDK 5.1 and the
cometchat_voippackage. The deprecated APIs continue to work unchanged in this release, and each deprecation message names its replacement. - Deprecated
CometChat.initiateCall(). UseCometChatCalls.initiateCall()fromcometchat_calls_sdkinstead. - Deprecated
CometChat.acceptCall(). Answer the call withCometChatVoip.answer()fromcometchat_voip, which also marks the call as answered, then join it withCometChatCalls.joinSession()fromcometchat_calls_sdk. - Deprecated
CometChat.rejectCall(). Decline an incoming call withCometChatVoip.decline()fromcometchat_voip, and cancel an unanswered outgoing call withCometChatCalls.endCall()fromcometchat_calls_sdk. - Deprecated
CometChat.endCall(). Hang up withCallSession.leaveSession()fromcometchat_calls_sdkinstead. - Deprecated
CometChat.getActiveCall(). UseCometChatCalls.getActiveSession()fromcometchat_calls_sdkinstead. - Deprecated
CometChat.clearActiveCall(), which is no longer needed because the Calls SDK clears its own session state when a call ends. - Deprecated
CometChat.joinedAtForSession()with no replacement, since only the deprecatedendCall()uses it. - Deprecated
CometChat.addCallListener(),CometChat.removeCallListener()and theCallListenermixin. UseCometChatCalls.addIncomingCallListener()andCometChatCalls.removeIncomingCallListener()fromcometchat_calls_sdkinstead. - Deprecated the
CallListener2mixin. UseCometChatCalls.addIncomingCallListener()fromcometchat_calls_sdkinstead.
5.1.0 #
New
- Added offline messaging, an opt-in mode that keeps chats usable without a connection. Enable it with
OfflineConfig(enabled: true, …)inAppSettings, throughinitorinitFromSettings(which readschatSDK.offline). Offline stays off unless you enable it; apart from the changes under Breaking Changes, an app that does not enable it behaves as on 5.0.9. On web, rundart run cometchat_sdk:setup_webonce from your app's root; the README has the steps. - Added cache-first reads for messages, conversations, threads, users, groups, group members, reactions and the notification feed. Each fetch returns cached data first, then the server's, through new fetch listeners such as
MessageFetchListenerandConversationFetchListener. - Added queued sending while offline: messages sent without a connection are stored and sent automatically on reconnect. Manage the queue with
getPendingMessages(),retryMessage(),retryAllFailedMessages(),discardLocalMessage()andaddOfflineMessageListener(), read why a send failed fromBaseMessage.failureReason, and size the queue with theOfflineConfiglimits and overflow policy. - Added reconnect sync, which catches up on missed messages, edits, deletes and conversation changes after a reconnect. Observe or drive it with
addSyncListener(),forceSyncNow(),getSyncState()andgetLastSyncTimestamp(). - Added media caching, controlled by
MediaCachingMode, withdownloadMedia(),getCachedMediaPath(),addMediaDownloadListener()andgetCacheSize(). - Added encryption of the offline cache at rest through
OfflineConfig.encryption, withgetOfflineEncryptionStatus()to inspect it andEncryptionFailureBehaviorto choose what happens when encryption is unavailable. Encryption also needs thesqlite3mcbuild-hook stanza in your app's ownpubspec.yaml, and on web a copy ofsqlite3mc.wasm; the README shows both. - Added
clearOfflineCache()to remove cached data, andaddOfflineCacheResetListener()to learn when the SDK resets the cache. - Added
message.status, aCometChatMessageStatus, to read a message's delivery state. - Added two-phase listeners for single lookups:
ConversationDetailsListenerforgetConversationandMessageDetailsListenerforCometChatHelper.getMessageDetailsdeliver the cached result first, then the server's.
Enhancements
- Improved cross-device sync: a conversation pinned or unpinned on another device now triggers
onConversationPinnedoronConversationUnpinned. - Improved
MessageThread.subscribed, which is now reliable on the default "my threads" list. On aparticipatedByMe(false)list it readsfalseunless the server provides the flag, and thread lists now send their page size asper_page. - Raised the
ReactionsRequestlimit from 20 to a maximum of 1000. - Changed
getMediaCachingMode()to returnOFFwhile offline mode is not active. - Changed
isOfflineEnabled()to report whether offline mode is running, not only whether it is configured.
Fixes
- Fixed paging on thread, pinned and saved message lists, which now return the next page; earlier versions sent a stale cursor from page 2 onward.
- Fixed message edits failing when the message metadata was an empty list.
- Fixed user and group timestamps that arrived in milliseconds being misread; they are now read as seconds.
- Fixed
lastReadMessageIdandlatestMessageIdbeing misread when the server sent them as strings. - Fixed
toJsonthrowing for a message with no receiver. - Fixed a login that a newer
logincall had replaced still completing its session setup in the background. - Fixed
markMessageAsUnreadon a received one-to-one message marking the logged-in user's own conversation instead of that chat.
Breaking Changes
- Raised the minimum requirements to Dart 3.10, Flutter 3.38 and iOS 13 (the Android minimum stays at API 21), and the minimum
flutter_secure_storageto 10.1.0, along with newerdriftandsqlite3minimums. Update your toolchain and dependency constraints before upgrading. - Changed the package to a Flutter plugin that downloads a prebuilt SQLite binary from GitHub at build time, through the
sqlite3package's native build hook. Build machines must be able to reach GitHub; air-gapped or locked-down CI needs an allowance. The package is also about 0.8 MB larger (sqlite3mc.wasm). - Changed logging in as a different user to end the previous session first:
logoutSuccessfires, and the connection drops and reconnects under the new user. A failed re-login that ends the session fireslogoutSuccess, thenloginFailure. - Changed
setAttachmentto append to a message's attachments instead of replacing them. UsesetAttachments(list)to replace them. - Changed
BlockedUsersRequestwith no direction set to requestblockedByMeinstead ofboth. Set the direction toBlockedUsersRequest.directionBothto keep the old behaviour. - Added members to public types such as
MessagesRequestandMessageListener. A class thatimplementsone of them must add the new members. - Added new top-level exports such as
OfflineConfig,CometChatMessageStatus,SyncStateandMessageSource. If one clashes with a name in your app, import the SDK withhideor a prefix.
5.0.9 #
New
- None
Enhancements
- Improved WebSocket reconnection with progressive delays and automatic credential refresh.
- Improved manual connection handling, logout, and disconnect to prevent unwanted connections and preserve registered listeners.
- Updated
ping()and connection error handling for clearer failure reporting.
Fixes
- Fixed reconnection failures, stuck connection attempts, duplicate WebSockets, and hanging
connect()ordisconnect()calls. - Fixed login, session, and initialization issues affecting listeners and connection state.
- Fixed brief app interruptions being incorrectly treated as backgrounding.
5.0.8 #
New
- None
Enhancements
- None
Fixes
- Fixed read and delivery receipts being silently lost after an app relaunch that restored a saved session instead of calling
login()again.markAsReadandmarkAsDeliveredreported success, but the receipt was never delivered to the other participant; receipts now work on restored sessions.
5.0.7 #
New
- Added thread subscriptions, allowing users to manage notifications for replies in specific threads.
- Added support for viewing and managing threads, including filtering by user or group.
- Added message pinning and saving, making it easier to highlight important messages and bookmark messages for later.
- Added conversation pinning to help users keep important conversations easily accessible.
- Added notification preferences for quoted replies and thread activity.
- Added support for registering web push notifications.
Enhancements
- None
Fixes
- Fixed an issue where ending a call did not notify the other participant, causing their call screen to remain open.
- Fixed an issue where transient messages were reported as sent but were not delivered to recipients.
- Fixed crashes that could occur when notification preferences contained missing or unsupported values.
5.0.6 #
New
- Added a multi-file upload API for sending several attachments in one message.
CometChat.createUploadFileRequest()returns anUploadFileRequestyou upload through and manage per file —uploadAttachment/uploadAttachments,retryAttachment,removeAttachment,clearAll— and inspect withgetStatus(),getAttachments(), andgetAttachmentCount(). - Added
UploadFileListenerfor per-file progress, success, rejection, and failure updates, with rejection (onFileError) and retryable failure (onFileFailure) as distinct callbacks.
Enhancements
- Improved Web and WebAssembly (
dart2wasm) support. - Added caption editing for
image,video,audio, andfilemessages viaeditMessage(), which now returnsFuture<BaseMessage?>(resolving tonullon failure). - Relicensed the package under the MIT License.
Fixes
- None
5.0.5 #
New
- Added a
CardMessageclass for receiving developer card messages, with accessors for the card payload, fallback text, anddata.text. - Added an
onCardMessageReceivedcallback toMessageListenerfor real-time card message delivery. - Added
AIAssistantCardStartedEvent,AIAssistantCardReceivedEvent, andAIAssistantCardEndedEventfor AI assistant card streaming throughonAIAssistantEventReceived. - Added an
AIAssistantElementmodel withgetType()andgetData()to represent ordered content blocks in AI assistant messages. - Added
getElements()andsetElements()toAIAssistantMessagefor working with orderedAIAssistantElementblocks fromdata.elements.
Enhancements
- None
Fixes
- None
5.0.4 #
New
- None
Enhancements
- None
Fixes
- Fixed an issue where custom server configurations could fail when endpoint URLs were provided without
https://.
5.0.3 #
New
- None
Enhancements
- Improved device recognition consistency across app launches for a more reliable experience.
- Improved the SDK reconnect behavior by stopping further reconnection attempts after a connection-not-allowed error is received from the WebSocket connection.
Fixes
- Fixed an issue on web that could prevent some applications from connecting successfully in browser environments.
5.0.2 #
New
- Added Notification Feed support with new data models including
NotificationFeedItem,NotificationCategory, andPushNotification. - Added
FeedReadStateenum with valuesread,unread, andallfor filtering notification feed items by read status. - Added
FeedEngagementTypeenum with valuesviewed,clicked, andinteractedfor reporting user engagement on feed items. - Added
NotificationFeedRequestBuilderfor fetching paginated notification feed items with filters for read state, category, channel ID, tags, and date range. - Added
NotificationCategoriesRequestBuilderfor fetching paginated notification categories. - Added
markFeedItemAsDelivered()andmarkFeedItemsAsDelivered()methods to mark notification feed items as delivered. - Added
markFeedItemAsRead()method to mark a notification feed item as read. - Added
markAllFeedItemsAsRead()method to mark all notification feed items as read in a single call. - Added
reportFeedEngagement()method to report user engagement (viewed, clicked, interacted) on a feed item. - Added
getNotificationFeedUnreadCount()method to retrieve the unread count for notification feed items. - Added
getNotificationFeedItem()method to fetch a single notification feed item by ID for deep linking. - Added
markPushNotificationDelivered()method to mark a push notification as delivered. - Added
markPushNotificationClicked()method to mark a push notification as clicked. - Added
NotificationFeedListenerfor receiving real-time notification feed items via WebSocket withonFeedItemReceived()callback. - Added
addNotificationFeedListener()andremoveNotificationFeedListener()methods for managing real-time notification feed listeners.
Enhancements
- None
Fixes
- None
5.0.1 #
New
- None
Enhancements
- Enhanced CometChat Skills to improve support for agentic integrations and workflow interoperability.
Fixes
- Fixed an issue where push notification tokens were not registered correctly on iOS devices, preventing reliable notification delivery.
Deprecations
- None
Removals
- None
5.0.0 #
New
- Added a fully rewritten Flutter SDK built entirely in pure Dart, with unified support across iOS, Android, Web, and desktop platforms.
- Added modular package imports, allowing developers to include only the required modules such as
messaging.dart,calling.dart,ai.dart,notifications.dart, andmoderation.dart. - Added real-time typing indicators powered by native Dart streams.
- Added background isolate parsing for improved performance when handling large message lists.
- Added automatic HTTP retry support with exponential backoff for transient network failures.
- Added improved WebSocket reconnection handling on web platforms during browser tab throttling.
- Added pagination metadata, including
currentPageandtotalPages, to message fetch responses. - Added device-level event routing to prevent duplicate event handling across multiple sessions.
- Added feature flags to disable typing indicators, read receipts, and presence updates.
Enhancements
- None
Fixes
- None
Breaking Changes
- Changed
onTypingIndicator()to returnStream<TypingIndicator>instead ofStream<String>. - Removed deprecated APIs including
receaverUidandfetchPushPreferences. - Renamed builder setters to
setWithUserAndGroupTags,setWithTags,setIncludeBlockedUsers, andsetWithBlockedInfo.
5.0.0-beta.3 #
New
- Added modular exports (
core.dart,messaging.dart, etc.) so you can import only what you need and reduce app size. - Introduced automatic HTTP retries with backoff for temporary failures (
408,429,5xx), improving reliability. - Added feature flags in
AppSettingsto disable typing indicators, read receipts, and presence. - Added listener leak detection to help identify missing
removeListener()calls. - Simplified
ConversationsRequestBuilderwith clearer method names and public flags for better control.
Enhancements
- Disabled request/response logging in release builds to improve performance.
- Improved JSON parsing performance by offloading smaller payloads to background isolates.
- Reduced default HTTP timeout to 15 seconds for faster failure handling.
Fixes
- Fixed dropped call events caused by incorrect event mapping.
- Fixed call event parsing and routing for better consistency.
- Resolved a compile issue in
_dispatchCallEvent. - Fixed pagination on web by correctly handling
currentPageandtotalPages. - Improved WebSocket stability on web, reducing unnecessary reconnects.
5.0.0-beta.2 #
New
- Added device and routing metadata (
deviceId,sender,receiver,receiverType) to socket events, enabling accurate message routing and preventing duplicate event handling. - Introduced a native Dart stream for typing indicators via
RealtimeRepository.typingStream, improving performance and reliability. TheonTypingIndicator()method now returnsStream<TypingIndicator>. - Expanded the
ReactionDatamodel to include additional metadata (id,messageId,uid) for more complete reaction tracking. - Standardized
ReactionActionEventaction constants to align with the Android SDK (message_reaction_added,message_reaction_removed). - Updated message event processing to use a DTO-to-mapper pipeline, ensuring consistent parsing with API responses.
- Added a platform-compatible isolate abstraction (
runInIsolate()), improving support for web environments. - Improved action message text formatting to ensure consistency across platforms (e.g., "Message Edited").
Enhancements
- Simplified package configuration by removing platform-specific plugin settings (Android/iOS) from
pubspec.yaml.
Fixes
- Resolved an issue where
deviceIdwas not parsed in most socket events, which prevented proper echo filtering for typing indicators, receipts, presence, and reactions. - Fixed an issue where users could see their own typing indicators in group chats.
- Corrected
rawDatahandling inMessageMapperto store the complete JSON payload instead of only the action string.
5.0.0-beta.1 #
New
- All platform channel method calls have been replaced with native Dart implementations, resulting in significant speed and performance improvements.
- The SDK now runs entirely on Dart by default, bringing cross-platform support to iOS, Android, and Web.
Breaking Changes
onTypingIndicator()now returnsStream<TypingIndicator>instead ofStream<String>.
Typing events include sender, receiverId, receiverType, metadata, lastTimestamp, and typingStatus fields.
Use TypingIndicator.typingStatus ("started" or "ended") instead of checking methodName. No EventChannel dependency — works on all platforms including web. Existing MessageListener callbacks (onTypingStarted / onTypingEnded) continue to work unchanged.
Removals
- Removed deprecated
markAsUnread()method. UsemarkMessageAsUnread()instead. - Removed deprecated
receaverUidparameter fromstartTyping()andendTyping(). UsereceiverUidinstead. - Removed deprecated
fetchPushPreferences(),updatePushPreferences(), andresetPushPreferences()methods. UsefetchPreferences(),updatePreferences(), andresetPreferences()instead. - Removed deprecated
PushPreferencesclass. UseNotificationPreferencesinstead.
4.1.2 #
New
- None
Enhancements
- Added support for configuring unanswered call timeouts in
CometChat.initiateCall(), allowing calls to be automatically rejected after a specified number of seconds. The default timeout is 45 seconds.
Fixes
- Resolved an issue where the
text_message_endevent was not recognized during AI Assistant streaming, preventing the streaming message bubble from finalizing correctly.
Deprecations
- None
Removals
- None
4.1.0 #
New
- Introduced
markMessageAsUnread()method to allow marking messages as unread for easier tracking and follow-up. - Added
markConversationAsDelivered()method to signal that a conversation has been delivered. - Introduced
markConversationAsRead()method to update the status of a conversation to "read." - Updated
lastReadMessageIdvariable to return and accept a int type instead of a string.
Deprecations
- Deprecated
markAsUnread()method. Please usemarkMessageAsUnread()instead.
4.0.33 #
Fixes
- Resolved an issue where image and video thumbnails were not displayed for url not present in metadata when the file access token feature was enabled.
4.0.32 #
New
- Added a
getFlagReasonsmethod that retrieves the list of available flag reasons from the dashboard, allowing developers to display accurate and up-to-date reporting categories. - Added a
flagMessagemethod that enables developers to flag a specific message by providing the message ID and the corresponding reason ID. - Added
quotedMessageIdvariable to the BaseMessage class for retrieving and assigning the ID of a quoted message. - Introduced
quotedMessagein the BaseMessage class to get or set the quoted message object. - Introduced
hideQuotedMessagesin the MessageRequestBuilder class to configure whether quoted messages should be included in the response.
4.0.31 #
New
- Added a
getFlagReasonsmethod that retrieves the list of available flag reasons from the dashboard, allowing developers to display accurate and up-to-date reporting categories. - Added a
flagMessagemethod that enables developers to flag a specific message by providing the message ID and the corresponding reason ID. - Added
quotedMessageIdvariable to the BaseMessage class for retrieving and assigning the ID of a quoted message. - Introduced
quotedMessagein the BaseMessage class to get or set the quoted message object. - Introduced
hideQuotedMessagesin the MessageRequestBuilder class to configure whether quoted messages should be included in the response.
4.0.30 #
Enhancements
- Changed the default limit to fetch in various request builders from 50 to 30.
Fixes
- Fixed an issue where only offline group members were fetched by default.
- Fixed pagination issue in various request builders.
- Added a flag to prevent multiple requests from being triggered simultaneously within a method.
4.0.29 #
New
- Added filters (
hideAgentic,onlyAgentic) to ConversationsRequest to help manage AI-driven (agentic) conversations. - Added a status filter to GroupMembersRequest for more precise member management.
Enhancements
- Added setPage() methods to all request builders, enabling direct page navigation and improved data handling in paginated responses.
- Implemented file size and file count validation in sendMediaMessage(), with configurable limits available through Settings.
4.0.28 #
Fixes
- Resolved an issue where sending multiple media files using the chat SDK did not return the list of attachments in the
onSuccesscallback. This issue occurred despite successful media transmission and has now been fixed to ensure accurate delivery feedback.
4.0.27 #
New
- Added AI Assistant Event Classes to provide detailed lifecycle tracking for AI assistant interactions:
AIAssistantBaseEvent– Serves as the base type for all AI assistant-related events.AIAssistantRunStartedEvent– Triggered when an AI assistant run begins.AIAssistantRunFinishedEvent– Triggered when an AI assistant run completes.AIAssistantMessageEndedEvent– Triggered when an AI assistant finishes sending a message.AIAssistantContentReceivedEvent– Triggered when content is received from the AI assistant.AIAssistantToolStartedEvent– Triggered when the AI assistant starts executing a tool.AIAssistantToolEndedEvent– Triggered when the AI assistant completes a tool execution.AIAssistantToolArgumentEvent– Triggered when arguments are passed to an AI tool.AIAssistantToolResultEvent– Triggered when results are returned from an AI tool.
- Introduced
AIAssistantListenerfor subscribing to and handling AI assistant events:addAIAssistantListener– Registers a listener for AI assistant events.removeAIAssistantListener– Unregisters an AI assistant listener.onAIAssistantEventReceived– Handles incoming AI assistant events.
- Introduced new methods in
MessageListenerfor subscribing to and handling new AI assistant messages:onAIAssistantMessageReceived– Handles incoming AI assistant message.onAIToolArgumentsReceived– Handles incoming AI tool arguments.onAIToolResultReceived– Handles incoming AI tool result.
- Added Messages & Data Classes for structured handling of AI tool call, argument, result and message:
AIToolResultMessage– Represents a message containing the result of a tool execution.AIToolCall– Contains structured data for a specific AI tool call.AIToolCallFunction– Contains structured data for a specific AI tool call function.AIToolArgumentMessage– Represents a message containing tool arguments.AIAssistantMessage– Represents a message sent by the AI assistant.
4.0.26 #
Fixes
- Added a missing method to fetch message details by message ID.
4.0.25 #
New
- Added a new
onMessageModeratedmethod in the MessageListener class. This method is triggered when a message sent by the logged-in user is successfully processed by moderation and receives either anapprovedordisapprovedstatus. - Introduced a new
moderationStatusvariable in both TextMessage and MediaMessage classes, allowing users to check the moderation status of their messages. - Added a new ModerationStatusEnum enum that includes the following states:
pendingapproveddisapprovedunmoderated(default for apps without moderation enabled)
4.0.24 #
New
- Added support for sending multiple media files in a single message, enabling richer and more efficient conversations.
- Introduced
createGroupWithMembersgroup creation by allowing users to create a group and add members in a single step. - Added
searchIn,sortBy, andsortByOrdervariables to the UsersRequestBuilder, giving developers more control over user filtering and ordering. - Added
attachmentTypesvariable to MessagesRequestBuilder, allowing developers to specify desired attachment types when fetching messages.
Enhancements
- Updated the
idandparentMessageIdfields in the message object frominttolongto improve scalability and ensure consistency across platforms.
4.0.23 #
New
- Added support for filtering conversations using new parameters in
ConversationsRequestBuilder:userTags– Enables users to filter conversations based on specific user tags.groupTags– Enables users to filter conversations based on specific group tags.
4.0.22 #
Fixes
- Fixed an issue where real-time listener events were only triggered when a UI action occurred. This was due to listener registration happening within a post-frame callback, which delayed initialization. The fix ensures listeners are now initialized earlier, restoring real-time responsiveness.
4.0.21 #
Fixes
- Fixed runtime crash due to Swift symbol mismatch between CometChatSDK and CometChatStarscream frameworks.
4.0.20 #
New
- Introduced Conversations & Advanced Search to enhance message and conversation filtering capabilities.
- Added new filters to
MessagesRequestBuilder:hasAttachments()– Retrieve messages that contain file attachments.hasReactions()– Retrieve messages that include user reactions.hasMentions()– Retrieve messages where users are mentioned.hasLinks()– Retrieve messages that contain hyperlinks.setMentionedUIDs(List<String>)– Retrieve messages mentioning specific user IDs.
- Added new filters to
ConversationsRequestBuilder:setSearchKeyword(String)– Search conversations (user or group) by name keyword.setUnread(boolean)– Retrieve only unread conversations.
Fixes
- Fixed an issue where an error appeared in the console when logging in for the first time on a freshly installed app on iOS. This issue did not cause a crash but has now been resolved to ensure a smoother login experience.
Removals
- Removed
myMentionsOnlymethod fromMessagesRequestBuilderintroduced in v4.0.2.
4.0.19 #
Fixes Fixed an issue with editing text messages in the CometChat API where a 'Type Null is not a subtype of Type User' error occurred.
New
Fixed an issue where tags could not be added to a media message using the CometChat.editMessage() method in Flutter
4.0.18 #
Fixes
- Fixed an issue where
readAtanddeliveredAttimestamps were being added by default toActionmessages.
4.0.17 #
New
- Added
onMessagesDeliveredToAllandonMessagesReadByAlllisteners to notify message sender when group messages are delivered or read by everyone in the group.
4.0.16 #
Fixes
- Fixed an issue where marking messages with mentions as read was not working.
4.0.15 #
New
- The following new methods have been introduced in the
CometChatNotificationsclass:updateTimezone: This method updates the timezone for receiving Enhanced Email and Enhanced SMS notifications correctly.getTimezone: This method fetches the timezone set for a user.
Enhancements
- The following methods in the
CometChatNotificationsclass have been deprecated:fetchPushPreferencesis now deprecated. Please usefetchPreferencesas an alternative.updatePushPreferencesis now deprecated. Please useupdatePreferencesas an alternative.resetPushPreferencesis now deprecated. Please useresetPreferencesas an alternative.
- The following class in the
CometChatNotificationsclass has been deprecated:PushPreferencesis now deprecated. Please useNotificationPreferencesas an alternative.
4.0.14 #
Fixes
- Fixed an issue where the
CometChat.clearActiveCall()method was incorrectly callingpinginstead ofclearActiveCall. - Fixed action messages constructor to take only required values
Deprecations
- Deprecated the
receaverUidparameter in theCometChat.startTyping()method. Please use thereceiverUidproperty instead. ThereceaverUidparameter will be removed in a future release. - Deprecated the
receaverUidparameter in theCometChat.endTyping()method. Please use thereceiverUidproperty instead. ThereceaverUidparameter will be removed in a future release.
4.0.13 #
New
- Added a new parameter
includeBlockedUsersinConversationsRequestBuilderto allow fetching conversations of users blocked by the logged-in user. - Added a new parameter
withBlockedInfoinConversationsRequestBuilderto fetch blocked information in the conversation object, such as blockedByMe and hasBlockedMe. - Added a new parameter for
scopesinBannedMembersRequestBuilder.
Fixes
- Fixed an issue causing a critical crash on Android devices when invoking the
CometChat.disconnect()method.
4.0.12 #
New
- Added a method named getConversationUpdateSettings which returns the settings saved in Dashboard.
4.0.11 #
Enhancements
- Updated all 3rd-party plugins versions.
- Resolved all static Dart Analyser suggestions
- Added namespaces in build.gradle to avoid conflicts.
4.0.10 #
Fixes
- Fixed the issue where the onInteractiveMessageReceived listener is not working in iOS.
4.0.9 #
New
- Added PrivacyInfo file that complies with the latest apple guidelines for SDKs.
4.0.8 #
New
- Added a new boolean property isBannedFromGroup to the Group model class to indicate whether the user is banned from the group or not.
- Introduced three new properties in CustomMessage class as follows:
- sendNotification: True value will trigger a notification for the custom message.
- conversationText: This string can be used to display the last message text in the conversation list.
- updateConversation: If set to true, the message will appear as the last message in the Conversation and will update and reorder the conversation list, placing the conversation at the top.
Fixes
- Fixed URL handling in
CometChat.callExtension, ensuring consistent and reliable endpoint interactions
4.0.7 #
New
- Introduced
ReactionandReactionEventclasses to enhance the functionality of message reactions introduced in v4.0.3. - Added
ReactionsRequestclass as a replacement forReactionRequestclass introduced in v4.0.3. - Added
ReactionsRequestBuilderclass as a replacement forReactionRequestBuilderclass introduced in v4.0.3. - Introduced Enhanced Push Notification Feature.
- Added
PushPreferences, GroupPreferences,MutePreferences,MutedConversation,UnmutedConversation&DaySchedule` classes - Added method
registerPushTokenmethod to register push token. - Added method
unregisterPushTokenmethod to unregister push token. - Added method
muteConversationsmethod to mute push notifications of conversations. - Added method
unmuteConversationsmethod to unmute push notifications of conversations. - Added method
fetchPushPreferences,updatePushPreferences&resetPushPreferencesto fetch, update & reset push preferences.
- Added
Enhancements
- The real-time listeners
onMessageReactionAddedandonMessageReactionRemovedhave been improved to return an object ofReactionEventclass, providing a more robust event model. ReactionsRequestBuilderhas been enhanced to return a list ofReactionobjects, offering a more intuitive and consistent API.
Removals
- Removed the
MessageReactionclass introduced in v4.0.3, transitioning its responsibilities to the newReactionandReactionEventclasses. - Removed
myMentionsOnlymethod fromMessagesRequestBuilderintroduced in v4.0.2.
4.0.7-beta1 #
- New:
ReactionEventObject will be emitted byonMessageReactionAdded&onMessageReactionRemovedevents - New:
MessageReactionclass renamed toReaction - New:
getReactions()method replaced withreactionsproperty inBaseMessageclass - New:
getMentionedUsers()method replaced withmentionedUsersproperty inBaseMessageclass - New:
hasMentionedMe()method replaced withhasMentionedMeproperty inBaseMessageclass - Bug: fixed
unreadRepliesCountcount incorrect type error inActionObject - Bug: fixed issue of other user's reactions not being received through the
lastMessageproperty ofConversationObject on iOS - Bug: fixed issue of receiving
onMessageReactionAdded&onMessageReactionRemovedevents when it is the logged-in user callingCometChat.addReactionandCometChat.removeReactionon iOS
4.0.6 #
- Bug: fixed sending metadata property in Call
- Bug: fixed sending muid property in Call
4.0.5 #
- Bug: fixed sending media messages with captions and tags in iOS
- Bug: fixed sending media messages with Attachment URL in iOS
4.0.4 #
- New: Added support to react on Text, Media and Custom Messages
- New: Added a new field unreadMentionsCount field in Conversation Object
- New: Added a new field lastReadMessageId field in Conversation Object
4.0.3 #
- New: Added support to mention a user in a Text & Media Message
- New: Added support to send interactive messages like forms, card, etc.
- New: Added a method to mark a message as unread
4.0.2 #
- New: Added methods for AI Conversation Summary & AI Assist Bot
4.0.1 #
- Bug: Fixes and performance improvements
4.0.0 #
- New: Optimized websocket connection
- New: Ping() for websocket connection
- Bug: Fixes and performance improvements
4.0.0-beta1 #
- New: CometChat v4 support enabled