Save history flag
The saveHistory option on send() controls whether a message is persisted for later retrieval via fetchChatHistory. It defaults to true.
Behavior
saveHistory
Effect
true (default)
Message stored; appears in fetchChatHistory
false
Live delivery only; not stored in chat history
await notifier.send({
senderId: "user-alice",
receiverId: "user-bob",
data: { type: "text", text: "This will be saved" },
saveHistory: true,
});
await notifier.send({
senderId: "user-alice",
receiverId: "user-bob",
data: { type: "typing" },
saveHistory: false,
});Dart:
When to set saveHistory: false
Typing indicators
Ephemeral UX signals
Presence / online status
No need to persist
Read receipts (if implemented via send)
Transient state
High-frequency telemetry in a chat UI
Avoid history bloat
Chat vs realtime-only sends
Use case
saveHistory
1:1 chat text
true (default)
Support conversation
true
Live cursor / typing
false
Dashboard metric push
false (not chat)
For non-chat realtime patterns, see Realtime communication overview.
Plan storage
Persisted messages count toward plan storage limits (maxRowsPerUser and related quotas from getPlanLimits()). See Plan limits & quotas.
Related topics
Last updated