SDK v7.x · Last verified March 2026 · iOS · Android · Web · Flutter
Speed run — just the code
Speed run — just the code
Prerequisites: Channel created and user is a member → Channels & Conversations
Limits at a Glance
Quick Start: Send and Receive Messages
Step-by-Step Implementation
1
Send a text message
2
Query message history with pagination
3
Subscribe to real-time updates
The Live Collection already handles real-time updates — new messages, edits, and deletions all trigger
dataUpdated. No extra setup required.Channel and message subscriptions keep documented SDK data current, but they do not expose typing-indicator state. Do not infer “typing” from user presence, a channel subscription, or message-collection activity.→ Real-time Events4
Edit and delete messages
Connect to Moderation & Analytics
AI content moderation on messages
AI content moderation on messages
social.plus AI Moderation automatically scans message text and flags violations before they’re visible to other users. Enable it in Admin Console → AI Content Moderation.→ AI Content Moderation
Webhook: message events
Webhook: message events
Subscribe to
message.created, message.updated, and message.deleted webhook events to sync message data or trigger business logic in your backend.→ Webhook EventsCommon Mistakes
Best Practices
Optimistic rendering for send
Optimistic rendering for send
- Show the message instantly in the UI before the server confirms it
- Mark it with a
sendingstate indicator (spinner or dim text) - Replace with the confirmed message on success, or show a retry button on failure
- This is the standard pattern for all major chat apps
Limit history to what's visible
Limit history to what's visible
- Start with 20–30 messages on first load
- Paginate backwards only when the user scrolls to the top
- Fetching large histories upfront increases load time and memory use, especially on mobile
Next Steps
Reactions & Replies
Add emoji reactions and threaded replies to messages.
Rich Media Messages
Send images, audio, video, and file attachments.
Unread Counts
Surface unread badges and per-message read receipts.