Installation
Cloudsmith (Current Beta)
For the current beta release, add the Cloudsmith hosted repository and dependency to yourpubspec.yaml:
What’s Changed
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 includesender,receiverId,receiverType,metadata,lastTimestamp, andtypingStatusfields. UseTypingIndicator.typingStatus(“started” or “ended”) instead of checkingmethodName. NoEventChanneldependency — works on all platforms including web. ExistingMessageListenercallbacks (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.