In-app notifications
Keep every notification in a server inbox, sync read state everywhere, deliver new items live, and announce them to screen readers without moving focus.
- Recommended 5
Recommended
Store every notification in a server-side inbox
NTF-31Write every notification to an inbox table on the server first, and let push, text and email point to that row. The browser never holds the only copy.
Keep read state the same everywhere
NTF-32Mark an item read once on the server, and clear it in every open tab, every device badge and any pending reminder.
Deliver new items live and catch up after a gap
NTF-33Push new inbox items to open pages over one live connection, and fetch what was missed after every reconnect.
Announce new items without stealing focus
NTF-34Announce new notifications to screen readers through a polite live region, and never move focus or open a dialog for them.
Delete old inbox items on a schedule
NTF-35Delete inbox items after a fixed time, such as 90 days, and show the limit in the inbox.
Read this with
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/notifications/in-app-notifications">Agent Wranglers notifications playbook</a>. In code you write, add a comment next to it with the same link.