Notifications
Notifications have three layers, and only one is guaranteed:
- Feed + bell counter — always, no permission, no configuration. The count in the header is correct whatever the operator did or did not allow.
- Desktop popups — the Notification API once permission is granted. Loud events (warning/error) pop even with the tab focused; the rest wait until it is hidden.
- FCM push — the only thing that reaches a closed tab, and the only part needing an operator’s own Firebase project.
message.sent is off by default and campaign sends never notify per recipient — a 5,000-recipient run would otherwise raise 5,000 notifications, and campaign.started / campaign.completed already tell that story. Failures do notify per recipient, campaign or not.
Push is configured from the operator’s own Firebase project. POST /api/notifications/push/test is the only path that reports a result — token count, accepted count, and Google’s own error code — so a misconfiguration is distinguishable from a working setup. The service worker renders the push itself; notification titles are localised on the client.