Notifications playbook
Rules for notifications people want. Channel choice, preferences, quiet hours, push, SMS and an in-app inbox, each with a check you can run.
- Required 11
- Recommended 33
A notifications playbook for any app that tells people something happened. It covers choosing the channel, push for every platform, web push, native push, text messages and chat apps, and an in-app inbox. It is for the people who build the sending code and the agents that help them.
Every notification costs the reader attention, and a text message also costs you money. Send too many and people turn them all off, often at the operating system level, where you cannot win them back. So most rules here are about sending less, at the right time, on one channel.
Start with Channels and preferences. It sets up the catalogue, consent and limits that every channel reads before it sends.
Email has its own email playbook, and these rules link to it instead of repeating it. Queues and retries follow the outbox rule, EVT-6, so each message is sent once, and abuse limits live in adversarial testing.
Chapters
Channels and preferences
List every notification in one catalogue, ask before marketing, honour each person's choices and quiet hours, and send one message per event.
- Required 3
- Recommended 8
Push notifications
Rules for every push, web or native. Give each a lifetime and a topic, keep lock screens safe, drop dead tokens and unlink devices at sign-out.
- Required 2
- Recommended 4
Web push
Ask for permission after a click that explains why, send through the browser's push service with VAPID, and accept endpoints only from known services.
- Required 1
- Recommended 5
Native push
Send to phones through the current APNs and FCM interfaces, keep personal messages off shared topics, and match each type to the platform's alert level.
- Required 2
- Recommended 2
Text messages
Register every sender, confirm each opt-in, obey STOP at once, keep texts to one segment and guard the send button against SMS pumping fraud.
- Required 3
- Recommended 9
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
Rules from regional law
Most rules here hold for every project. The rules below come from the law of one region. Follow them when your project serves people there.
United States (US)
- Required NTF-24 Stop at the first STOP
This is a lot to check. An Expert can check it for you.
Related playbooks
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">Agent Wranglers notifications playbook</a>. In code you write, add a comment next to it with the same link.