Protocol guide
Notifications and push
How a hosting server turns mentions, DM messages and rings into notify events, how the user's home server applies settings, stores records and sends opaque pushes through a push gateway or Web Push, and what a device does when a push arrives.
Specification: 19 Notifications and push
A notification tells a user that something needs their attention: a mention, a DM message, a ringing DM call. In a federated system the server that hosts the conversation (the hosting server) is often not the server that holds the user's account (the home server), and phones are reached through Apple and Google push services that should learn nothing. Document 19 splits the work so that each party holds only what it needs:
- The hosting server decides that a notification is due, coalesces bursts and sends a
notify.eventto the recipient's home server (19 §4, §5). - The home server applies the user's settings, stores a notification record and is the only party that sends pushes (19 §6).
- The push gateway turns a home server's request into an APNs or FCM message. Browsers use Web Push and need no gateway (19 §11, §12).
- The device wakes up, fetches the record from its home server and the event from the hosting server, and decrypts locally (19 §13).
Every push, of every kind, in every security mode, carries the same 93-octet object of two opaque IDs. Push services and gateways can't tell a DM from a mention, or a secure context from an insecure one (19 §10.1).
Push isn't optional: every Server supports all of document 19, and there is no feature flag. The only optional part is Web Push, which a server offers when its ServerMetadata has endpoints.push.webPushKey (19 Status).
This page assumes you know contexts and the event WebSocket from Event WebSocket, and server-to-server delivery from Federation.
The flow end to end
The path of one mention in #Lobby on b.com, for alice@a.com whose phone app is suspended (19 §3.1):
- Carol's message mentions Alice.
b.comderives amentiontrigger and sends the ephemeral notify.triggered to Alice's connected sessions onb.com, for in-app use only. - Alice has no attentive session on
b.com, so it sends a notify.event over S2S toa.com. It carries the kind, sender, context name, the triggeringseqandmid, an event ticket and, because#Lobbyis insecure, a short preview. a.comvalidates the event, checks that Alice has a relationship withb.com, and evaluates her settings. The outcome isnotify.a.comstores a NotificationRecord, emits notification.created to Alice's connected sessions, and sends{"v":1,"h":<record ID>,"r":<registration ID>}to her phone through the gateway named in her push registration.- The phone's notification extension calls
GET {home}/v1/me/notifications/{h}with its fetch token and, because Alice'spreviewssetting isfull, shows Carol's name,#Lobbyand the preview text. In a secure context there is no preview, so it would also callGET {hostApi}/v1/me/notifications/eventswith the event ticket from the record and decrypt the message locally.
Desktop apps don't use push. While running they hold the home server's event WebSocket and turn notification.created into operating-system notifications (19 §13.6).
The hosting server never sees settings, records, registrations or tokens; the home server sees metadata and insecure previews but never secure content; the gateway learns which home server wakes which app installation, when, and with which push type, and the push services learn only that an installation is woken, when, and with which push type (19 §3.3).
Triggers
A trigger is one reason to notify one account about one durable event. Document 11 defines the message triggers and document 15 the ring triggers; document 19 lists them in one table (19 §4.1):
| Source | Trigger kind |
|---|---|
A message that mentions the recipient (insecure content.mentions, or the secure mention hint) |
mention |
A reply with ping: true to the recipient, in an insecure context |
reply |
mentionAll by a sender holding mention_everyone |
mention_all |
| A root message in a DM or group DM | dm_message |
| An edit that newly mentions the recipient | mention |
| A ring of a DM call | call_ring |
| The end of that ring | call_ring_ended |
| Deletion or expiry of a message whose notification was sent | withdrawn |
| An edit of an insecure message whose notification carried a preview | withdrawn with previewOnly: true |
Reactions, typing, read state, presence, membership changes and manual history shares trigger nothing in v1. In a secure context a reply ping arrives as a mention through the hint, so it is reported as mention.
One event gives at most one message-kind trigger per recipient. When several kinds apply, for example a DM root message that also mentions the recipient, the hosting server uses the highest-priority kind in the order mention > reply > mention_all > dm_message (19 §4.1). The same priority order picks the kind of an aggregate later on.
The hosting server then removes from the recipients (19 §4.2):
- the sender's own account;
- accounts without current access to the context, including, in a secure context, anything sequenced before the recipient's membership began;
- DM participants in state
pending(their home server notifies them from thedm.requestinstead), and a 1:1 participant in statedeclined; - a 1:1 participant who blocked the other participant;
- bot accounts. Bots never receive
notify.event; they read mentions through their own sessions.
call_ring takes its targets from document 15; every rule above except the access rule still applies to it (19 §4.2).
Which messages count as mentions, and how the secure mention hint works, is covered in Messaging. Rings are covered in Calls.
At the hosting server
Attentive sessions
The hosting server holds back message notifications while the user is looking at an app connected to it. A session is attentive when all three hold (19 §4.3):
- its event WebSocket is in state
ready; - its last session.state, or the
foregroundmember of session.hello, declaredforeground: true; - its presence idle flag is
false(set with PUT /v1/me/presence).
The idle flag is there so that a desktop window left open on an empty desk doesn't silence the phone. For your client this means (19 §4.3, §13.6):
- Send
foreground: falseas soon as the user can't see the app, including when a desktop app's windows are all hidden or minimized. A stale "foreground" loses notifications; a stale "background" only duplicates one. - An app that opens its WebSocket while not visible, such as an iOS app woken by PushKit, MUST send
foreground: falseinsession.helloand MUST NOT sendtrueuntil the user can see it.
call_ring and call_ring_ended ignore attentiveness, so a phone rings even while the desktop app is open. withdrawn also ignores it: it is sent whenever an earlier notification for the message was sent (19 §4.3).
In-app notices: notify.triggered
For every mention, reply, mention_all or dm_message trigger, the hosting server sends notify.triggered to every connected session of the recipient on that server. It is ephemeral, on the hosting server's me stream (19 §4.4):
{
"v": 1,
"t": "notify.triggered",
"id": "01a2424b-7a10-7c3d-8e4f-5061728394a5",
"ctx": "me",
"ts": "2026-12-04T18:31:02.118Z",
"d": { "ctx": "ch:01938a11-2b3c-7d4e-8f90-aabbccddeeff", "kind": "mention", "seq": 91, "mid": "01a2424b-79f0-7b2c-9d3e-4f5061728394",
"sender": { "addr": "carol@c.com", "name": "Carol", "kind": "user" }, "at": "2026-12-04T18:31:02.104Z" }
}It exists because session.heads, which a client gets for contexts it doesn't follow in full, carries no mention information. Use it for mention badges and in-app banners, with two rules (19 §4.4):
- Never show an operating-system notification for it; those come only from home-server records, which have passed the user's settings.
- Before a banner, apply the settings synced from the home server and the presence status: no banner where rules H1 to H4 below give
drop, no sound where the outcome issilent.
After a reconnect, mentionCount in the ReadState carries the same information.
The 30-second window
The hosting server keeps one notification window per (recipient, context). Message-kind triggers go through it; call_ring, call_ring_ended and withdrawn bypass it (19 §4.5). Coalescing is leading-edge:
- The first trigger, with no attentive session and the rate cap not reached, is sent at once and opens a 30 s window. If the recipient is attentive, the first trigger goes into
pendinginstead and the window still opens. - Later triggers in the window are held in
pending, including those that arrive while the recipient is attentive, because "attentive" can be a few seconds stale. A pending message that is deleted or expires is removed frompending. - At the deadline,
pendingis discarded if the recipient now has an attentive session or itsreadSeqis at least the highest pendingseq; otherwise it is sent as one aggregate and a new 30 s window starts. An emptypendingreturns the window toidle.
The deadline MAY fire up to 2 s late, and windows live in memory, so a restart loses at most the pending aggregate (19 §4.5).
An aggregate carries the latest trigger's sender, seq, mid, at and preview; the last 20 triggers in items, each with its own sender; count (all triggers, not only the 20 listed); otherSenders (distinct senders other than the latest); and the highest-priority kind among them.
At most 20 message-kind notify.events go to one recipient in any sliding 60 s, across all windows; a trigger or deadline over that cap waits. A worked trace is in 19 §20.5.
Withdrawal
When a notified message is deleted or expires, the hosting server removes it from every pending list and sends a notify.event of kind withdrawn listing its mid to every recipient it notified in the last 7 days. For a root message, the withdrawal also lists the mid of every edit of it that was notified to that recipient. When an insecure message whose notification carried a preview is edited, it sends withdrawn with previewOnly: true, so the home server drops the stale preview. Withdrawals for one recipient and context MAY be batched over up to 5 s, at most 50 mids per event.
To do this a hosting server MUST remember, for 7 days, which (recipient, mid) pairs it notified and whether a preview went with them. The mids it carried in a dm.request batch count as notified for every recipient of that request, because the recipient's home server may have built a record from them (19 §4.6).
Previews and event tickets
In an insecure context the hosting server MAY include a preview of the latest triggering message (19 §4.8):
text: the current message text with mention and channel tokens replaced by display names, line breaks replaced by single spaces, truncated to at most 140 Unicode scalar values, the last one being U+2026 when truncated;attachments: the number of attachments, so the device can say "sent a file".
Secure contexts only
In a secure context the hosting server MUST NOT include a preview or any other text derived from content. The home server rejects such an event with notify.secure_preview and stores nothing (19 §4.8, §5.6). A hosting server SHOULD also omit the preview when the recipient's home server is a secure server, because that home server discards it anyway.
Every message-kind notify.event carries an event ticket: an opaque bearer string of at least 128 random bits, at most 64 characters, which MAY start with a prefix such as et_. It lets the recipient's devices fetch exactly the notified events with GET /v1/me/notifications/events, without the remote session that a notification extension can't create in its budget. It is valid for 72 h, may be used by any of the recipient's devices at most 30 times per minute per ticket, and the hosting server re-checks the recipient's access at every use and stores only its SHA-256 (19 §4.7).
Secure contexts only
A ticket identifies an account, not a device, so in a secure context it is the bounded exception to SM-4 recorded in 00 §4.2. It returns only ciphertext and metadata the server can see anyway, and the home server hands a secure-context ticket only to enrolled devices; every other device sees ticket: null (19 §4.7, PD-19-16).
notify.event between servers
notify.event is an S2S event delivered with the envelope, batching, retries and deduplication of Federation (19 §5.1):
| Property | Value |
|---|---|
| Origin → destination | Hosting server → the recipient's home server (internal delivery when they are the same server) |
| Lane | high for call_ring and call_ring_ended; normal for every other kind |
orderKey |
The recipient's canonical address |
| Subject binding | The recipient is homed at the receiver; d.host equals the S2S token's iss |
expiresAt |
call_ring: the ring's expiresAt (45 s after the ring started). call_ring_ended: ts + 60 s. Other kinds: absent. |
| Size | At most 8 KiB serialized. Over that, the sender drops items from the oldest, then shortens ctxName and community.name to 64 scalar values. |
A notification that can't be delivered in time is dropped; there is no give-up hook.
The payload
An insecure channel mention, first in its window (19 §5.4):
{
"id": "01a2424b-7a20-7d11-8a22-334455667788",
"t": "notify.event",
"ts": "2026-12-04T18:31:02.130Z",
"orderKey": "alice@a.com",
"d": {
"recipient": "alice@a.com",
"kind": "mention",
"host": "b.com",
"ctx": "ch:01938a11-2b3c-7d4e-8f90-aabbccddeeff",
"ctxKind": "channel",
"ctxName": "Lobby",
"ctxAddr": "lobby@b.com",
"community": { "name": "B Community" },
"security": "insecure",
"sender": { "addr": "carol@c.com", "name": "Carol", "kind": "user" },
"at": "2026-12-04T18:31:02.104Z",
"items": [ { "seq": 91, "mid": "01a2424b-79f0-7b2c-9d3e-4f5061728394", "kind": "mention",
"sender": { "addr": "carol@c.com", "name": "Carol", "kind": "user" }, "at": "2026-12-04T18:31:02.104Z" } ],
"count": 1,
"otherSenders": 0,
"preview": { "text": "@Alice are you joining voice tonight?", "attachments": 0 },
"ticket": { "token": "et_Qm9kZ2V0LXRpY2tldC0wMDAx", "expiresAt": "2026-12-07T18:31:02.130Z" }
}
}A secure DM looks the same with "security": "secure" and no preview. A ring carries call: {callId, video, expiresAt} instead of items, count, otherSenders and ticket; its end carries call: {callId, expiresAt, reason}, where expiresAt is that of the ring that ended and reason is answered, declined, timeout or cancelled. A withdrawal carries withdrawn: [mid…] (1 to 50) and no sender. Which members each kind requires is in 19 §5.2 (NotifyEventPayload); more examples are in 19 §5.4.
A receiver treats an unknown security as secure, an unknown item kind as dm_message, an unknown sender kind as user, and an unknown ring-end reason as cancelled. A message posted through a webhook has the sender { "kind": "webhook", "webhook": id, "name": name }, with no addr (19 §5.2).
Kinds
Some kinds travel in notify.event; others are created only at the home server (19 §5.3):
| Kind | Origin | In notify.event |
Creates a record | Push type |
|---|---|---|---|---|
mention, reply, mention_all, dm_message |
Hosting server; the home server also creates dm_message when it auto-accepts a DM request |
Yes | Yes | alert |
call_ring |
Hosting server | Yes | Yes | call (alert for a device with no call registration) |
call_ring_ended |
Hosting server | Yes | No; updates the ring record, may create call_missed |
background or alert |
withdrawn |
Hosting server | Yes | No; updates records | background |
call_missed |
Home server, from a ring that ended unanswered | No | Yes | alert |
dm_request |
Home server, from a new message request | No | Yes | alert |
pairing_request |
Home server, during device pairing | No | Yes, for enrolled devices | alert |
account_alert |
Home server, at an identity reset or downgrade | No | Yes | alert |
test |
Home server, on a test request | No | Yes, for one registration | alert |
A hosting server MUST NOT send a home-local kind; the home server answers rejected with federation.event_invalid (19 §5.3).
Validation and the legitimacy filter
The home server validates d with rows V1 to V9 of 19 §5.6, in order, the first match deciding:
rejected: malformed members or actxKindthat disagrees with thectxprefix (federation.event_invalid), ahostthat isn't the token'siss(federation.event_not_authorized), a home-local kind (federation.event_invalid), a secure preview (notify.secure_preview) or a non-canonical address (address.non_canonical);ignored: an unknown kind, an unknown or deleted recipient, or a failed legitimacy check, so a server can't probe whether an account exists.
An unknown kind is checked before the kind-dependent members, because a kind from a newer minor version has members this receiver doesn't know.
The legitimacy filter stops any server on the federation from making anyone's phone buzz by inventing a context (19 §6.1):
ctxKind |
Accepted when |
|---|---|
channel |
iss is the home server itself, or is on the recipient's community list, or is in the recipient's audience set with source assertion |
direct, group |
The recipient's DM index has an active entry for (iss, ctx) |
A DM entry in state requested gets nothing from notify.event, not even a ring; content and call starts for a pending participant travel in dm.request batches (Direct messages). An entry in state blocked, declined, left or closed, or no entry, also fails the filter. Before storing, the home server runs the display-name check of Addresses on every sender name and on a channel's ctxName, replaces a passing name with its normalized form, and sets a failing name to null (19 §5.6).
Notification settings
Settings live only at the home server, keyed by (hosting server canonical domain, context reference). A mute applies to every device at once, and remote servers learn nothing about what the user mutes (19 §7). There are three levels: global, per community and per context.
All settings endpoints need a home session. Bot tokens get 403 core.forbidden, and a remote session gets 403 push.home_only. Every change emits notification.settings_changed on me, which is how your other devices and your in-app banner logic stay in sync.
Global
GET /v1/me/notifications/settings and PUT /v1/me/notifications/settings read and replace the NotificationSettings (19 §7.1):
| Member | Default | Values |
|---|---|---|
enabled |
true |
Master switch |
previews |
full |
full (sender, context and text), sender_only, none ("New message" or "Incoming call" only) |
channels |
mentions |
mentions or nothing |
dms |
all |
all, mentions or nothing |
groupDms |
all |
all, mentions or nothing |
everyone |
true |
Whether "everyone" mentions notify |
calls |
true |
Whether DM calls ring |
The object also has the read-only version, which increases by 1 on every change, and updatedAt. A client treats an unknown previews value as sender_only, and the server treats an unknown stored level as mentions. PUT takes every writable member, all required, and an optional ifVersion; a mismatch gives 409 core.conflict and changes nothing, and a level outside the allowed set gives 400 notification.level_unsupported:
PUT {home}/v1/me/notifications/settings
{ "enabled": true, "previews": "sender_only", "channels": "mentions", "dms": "all",
"groupDms": "all", "everyone": false, "calls": true, "ifVersion": 3 }Message-request notifications are controlled by requestNotifications in the DM settings of Direct messages, not here; clients SHOULD show that switch on the same screen.
Per community
PUT /v1/me/notifications/settings/communities/{host} sets a CommunityNotificationSettings for the community on one hosting server: level (default, mentions or nothing), muteUntil (at most 366 days ahead, or null) and everyone (null inherits) (19 §7.2). "Mute forever" is level: "nothing".
Send the canonical domain from that server's ServerMetadata; a value that isn't a valid domain gives 400 core.invalid_request. The home server MUST NOT refuse a host it can't reach, because a user may mute a community whose server is down; it stores the domain as given and re-canonicalizes it later. GET of a missing entry returns the defaults (level: "default", the others null) with 200; DELETE restores them and answers 204. An account has at most 1,000 entries; one more gives 409 core.conflict with data.max. GET /v1/me/notifications/settings/communities lists them.
Per context
Per-context settings are served by the home server for contexts on any server. The hosting server is named in the host query parameter, which defaults to the home server's own domain, so always pass it for a remote context (19 §7.3):
PUT {home}/v1/contexts/ch:01938a11-2b3c-7d4e-8f90-aabbccddeeff/notification-settings?host=b.com
{ "level": "nothing", "muteUntil": null, "everyone": null, "calls": null }{ "host": "b.com", "ctx": "ch:01938a11-2b3c-7d4e-8f90-aabbccddeeff", "level": "nothing",
"muteUntil": null, "everyone": null, "calls": null, "updatedAt": "2026-12-04T19:02:11.511Z" }The ContextNotificationSettings level is default, all, mentions or nothing. all is allowed only for dm: and gdm: contexts, because ordinary channel messages produce no trigger; all on a ch: context gives 400 notification.level_unsupported. calls overrides the global calls for DMs and MUST be null for channels (400 core.invalid_request otherwise). {ctx} must match the context-reference grammar, with the colon optionally percent-encoded; the home server doesn't check that the context exists or that you can see it. GET of a missing entry returns the defaults with 200, and DELETE answers 204. An account has at most 10,000 entries (409 core.conflict beyond that), and the home server MAY delete entries for contexts the user has left after 90 days without change. GET /v1/me/notifications/settings/contexts lists them, so every device can show a muted icon in the context list (19 §7.4). When a 1:1 DM moves to a new hosting server, the home server copies its settings to the new key unless an entry already exists there, so a muted chat stays muted (19 §7).
How the home server evaluates settings
For a message kind or call_ring, the home server computes an outcome: drop (store nothing), silent (store a record, push nothing) or notify. The rules apply in order, and the first that decides wins (19 §6.2):
| Rule | Condition | Outcome |
|---|---|---|
| H1 | Global enabled is false |
drop (ring: silent) |
| H2 | Context or (channels) community muteUntil is in the future |
drop (ring: silent) |
| H3 | Effective level is nothing |
drop (ring: silent) |
| H4 | dm_message with effective level mentions, or mention_all with effective everyone false |
drop |
| H5 | call_ring with effective calls false |
silent |
| H6 | The home server is a secure server | Discard preview; continue |
| H7 | Global previews isn't full |
Discard preview; continue |
| H8 | The account's presence status is dnd |
silent |
| H9 | Otherwise | notify |
The effective level is the context's level unless default, then (channels) the community's unless default, then the global default for the context kind. everyone and calls inherit in the same way through null.
H4 is evaluated per item of an aggregate, using each item's own kind. Dropped items are removed; if none remains, the outcome is drop. Otherwise the record is recomputed from the rest: the highest-priority remaining kind, the sender and eventAt of the latest remaining item, otherSenders over the remaining senders, count reduced by the number of removed items (but at least the number remaining), and no preview if the latest item was removed. H1 to H3 and H5 to H9 are then evaluated once for the record. For example, with global everyone: false, an aggregate of a mention_all by Dave and a mention by Carol becomes a record with only Carol's mention, count 1 and otherSenders 0 (19 §20.4 S15).
Rings are never dropped by settings, only made silent, so a muted or dnd call still shows as a missed call. Home-local kinds apply the rules differently (19 §6.5):
dm_requesthonours only H1 and H8, because the context has no settings yet;- a
dm_messagebuilt from an auto-accepted DM request goes through H1 to H8; pairing_requestignores globalenabled, levels, mutes and do-not-disturb, because the user started the pairing;account_alertignores H1 to H5; codeW4aalso ignores H8 (do-not-disturb), because the user must learn of an identity reset at once;testignores every setting. Test vectors S1 to S16 are in 19 §20.4.
Notification records
A NotificationRecord is what the home server stores for an outcome of silent or notify. Its id is the h of every push about it (19 §8.1). A device fetches one with GET /v1/me/notifications/{id}, using a home session or a fetch token:
{
"record": {
"id": "01a2424b-7a3c-7d1e-9f00-1b2c3d4e5f60",
"kind": "mention",
"state": "unread",
"silent": false,
"host": "b.com",
"hostApi": "https://chat.b.com/server",
"ctx": "ch:01938a11-2b3c-7d4e-8f90-aabbccddeeff",
"ctxKind": "channel",
"ctxName": "Lobby",
"ctxAddr": "lobby@b.com",
"community": { "name": "B Community" },
"security": "insecure",
"sender": { "addr": "carol@c.com", "name": "Carol", "kind": "user" },
"items": [ { "seq": 91, "mid": "01a2424b-79f0-7b2c-9d3e-4f5061728394", "kind": "mention",
"sender": { "addr": "carol@c.com", "name": "Carol", "kind": "user" }, "at": "2026-12-04T18:31:02.104Z" } ],
"count": 1,
"otherSenders": 0,
"preview": { "text": "@Alice are you joining voice tonight?", "attachments": 0 },
"ticket": { "token": "et_Qm9kZ2V0LXRpY2tldC0wMDAx", "expiresAt": "2026-12-07T18:31:02.130Z" },
"call": null, "dmRequest": null, "pairing": null, "alert": null, "targets": null,
"eventAt": "2026-12-04T18:31:02.104Z",
"pushedAt": "2026-12-04T18:31:02.410Z",
"createdAt": "2026-12-04T18:31:02.301Z",
"updatedAt": "2026-12-04T18:31:02.301Z"
},
"badge": 3,
"display": { "previews": "full" }
}hostApi is the hosting server's base URL as the home server resolved it, so an extension needs no discovery of its own. display.previews is the user's current global setting, so the extension needs no other request. targets limits a record to some devices; a device not listed gets 404 core.not_found and never sees it in lists. host, hostApi, ctx and the context members are null for pairing_request, account_alert and test, which belong to no context. Clients treat an unknown kind as a generic "New notification" and an unknown state as read.
States
| State | Meaning | Counts toward the badge |
|---|---|---|
unread |
Not yet seen | Yes, unless silent |
read |
Opened, read past, or its subject resolved (call answered, request resolved) | No |
dismissed |
Cleared from the tray without opening | No |
withdrawn |
Every message it referred to was deleted or expired | No |
A record never returns to unread, and withdrawn is terminal (19 §8.2).
Listing and marking read
GET /v1/me/notifications lists records visible to the calling device, newest first. Query parameters: state (comma-separated, default unread), host and ctx, kind, cursor, limit (1–100, default 50). The response is { "items": [...], "nextCursor": ..., "badge": n } (19 §8.3).
POST /v1/me/notifications/read changes states. Exactly one selector is required, otherwise 400 core.invalid_request:
ids: 1–100 record IDs;hostandctx, with optionalthroughSeq: everyunreadrecord of that context whose latest item hasseq ≤ throughSeq; withoutthroughSeq, everyunreadrecord of the context. Records without items (call_ring,call_missed,dm_request) are never selected bythroughSeq;all: true: everyunreadrecord visible to the device.
state is read (default) or dismissed. IDs that don't exist or aren't unread are skipped silently.
POST {home}/v1/me/notifications/read
{ "host": "b.com", "ctx": "ch:01938a11-2b3c-7d4e-8f90-aabbccddeeff", "throughSeq": 95 }{ "updated": 2, "badge": 1 }Retention and reconciliation
unread records are deleted 30 days after creation, other states 7 days after their last change. An account keeps at most 1,000 records, deleting the oldest first, preferring non-unread ones. Expired tickets are removed from records, leaving ticket: null (19 §8.4).
Your client keeps the tray in step with the server (19 §8.5):
- When the app starts or comes to the foreground, fetch
GET /v1/me/notifications?state=unread(all pages, up to 1,000), remove every tray notification whose record isn't in the list, and set the badge. - When the user taps a notification, open the context at the record's latest item and mark the record
readwith theidsselector. - When the user swipes one away, your client SHOULD mark it
dismissedif the platform reports the dismissal (AndroiddeleteIntent, iOSUNNotificationDismissActionIdentifierwith the custom-dismiss option, webnotificationclose). - While connected, apply
notification.*events to the local list and tray.
Push registration
A PushRegistration belongs to one device of one account, at that account's home server. A device has one registration per push channel: typically one on Android (FCM), two on iOS (APNs for alerts and background pushes, PushKit for calls) and one in a browser (Web Push). Its id is the r of every push sent for it (19 §9.1).
Registrations, fetch tokens, records and settings exist only at the home server. Any /v1/me/push-registrations… request, and any /v1/me/notifications… request other than /events, made with a remote session gets 403 push.home_only. A client MUST NOT send push tokens, push keys, fetch tokens or registration IDs to any server other than its home server and its push gateway (19 §9.5).
Registering on mobile
The app never gives its home server a raw APNs or FCM token. It first exchanges the token with its gateway for a push key, which is the token sealed by the gateway and bound to one home server (19 §11.2):
POST {gatewayUrl}/v1/register
{ "platform": "apns", "appId": "<bundle ID>", "environment": "production",
"token": "<APNs device token, lowercase hex>", "home": "a.com" }{ "pushKey": "pk1.AQ3vTq0b9Xc2mW8yLr5uZp1sKd4fHg7jNe6aBt0iVo2xQyRw" }platform is apns (alerts and background), apns_voip (PushKit) or fcm. Call POST {gatewayUrl}/v1/register once per account (each home) and, on iOS, once per platform. It is unauthenticated, though a gateway MAY require app attestation. Errors include push.app_unknown and push.platform_unsupported.
Warning
Because /v1/register is unauthenticated, anyone holding a raw platform token can register it for a server of their own and wake the device. Platform tokens are secrets of the app: send them only to your own gateway and never log them (19 §11.2).
Then create the registration at the home server with POST /v1/me/push-registrations:
POST {home}/v1/me/push-registrations
{ "transport": "gateway", "types": ["alert", "background"],
"gatewayUrl": "https://push.example.net/gw",
"pushKey": "pk1.AQ3vTq0b9Xc2mW8yLr5uZp1sKd4fHg7jNe6aBt0iVo2xQyRw" }{
"id": "01a24190-0c4e-7b8a-9d10-2e3f4a5b6c7d",
"did": "oKGio6SlpqeoqaqrrK2urw",
"transport": "gateway",
"types": ["alert", "background"],
"gatewayUrl": "https://push.example.net/gw",
"pushKey": "pk1.AQ3vTq0b9Xc2mW8yLr5uZp1sKd4fHg7jNe6aBt0iVo2xQyRw",
"state": "active",
"lastDeliveredAt": null,
"lastError": null,
"createdAt": "2026-12-04T17:58:40.120Z",
"updatedAt": "2026-12-04T17:58:40.120Z",
"fetchToken": "pf_Jm3kV9tQ2xYb7LcR0sWp4nHd8eGa1uFz",
"fetchTokenExpiresAt": "2027-02-02T17:58:40.120Z"
}List in types only what the platform channel can take: an apns_voip push key gets ["call"], an apns key alert and background, an fcm key any of the three (19 §9.1). The home server picks registrations per device: a device with a call registration gets a ring only there, which is how an iPhone rings exactly once, through CallKit. It also never sends a registration a type outside its types (19 §6.4).
The server checks, in order (19 §9.2):
- The device isn't a bot device or in shared-computer mode, otherwise 403 push.device_not_eligible.
- The body is valid, otherwise 400 push.registration_invalid with
data.reason(transport,types,gateway_url,push_key,endpointorkeys). - For
gateway:gatewayUrlishttpson a domain name, not an IP literal, that resolves only to public unicast addresses; under alistedpolicy it must also be one of the listed gateways, otherwise 403 push.gateway_not_allowed withdata.gateways. - For
webpush: the server offers Web Push, otherwise 501 core.unsupported_feature; the endpoint passes the same address check, and the keys are valid. - The device has fewer than
maxPushRegistrationsPerDeviceregistrations (default 4), otherwise 409 push.too_many_registrations.
If the device already has a registration with the same transport and pushKey (or webPush.endpoint), the server updates its types, issues a new fetch token and answers 200; otherwise it answers 201. Both responses carry fetchToken, which GET never returns.
Store the registration id, the fetchToken and the home base URL where the notification extension can read them (19 §9.4). Every push key carries a fresh nonce, so the server can rarely spot a duplicate. A client that has lost its registration IDs MUST call GET /v1/me/push-registrations first and PUT or DELETE its own entries, because duplicates cause duplicate pushes (19 §9.2).
Registering for Web Push
Web clients register the browser's push subscription directly; no gateway is involved (19 §12.5):
- Ask for notification permission in context, never on first page load, and subscribe with
userVisibleOnly: trueandapplicationServerKeyset to the server'swebPushKey. POSTwithtransport: "webpush",webPush: {endpoint, p256dh, auth},vapidKeyset to the key you actually passed, andtypesthat never includebackground.- Store the registration
id, fetch token and home base URL in IndexedDB for the service worker, and onpushsubscriptionchangere-subscribe andPUT.
A browser in shared-computer mode doesn't register at all. An Android app MAY use the webpush transport with a UnifiedPush distributor, a push path with no Google service and no gateway (19 §12.6).
Fetch tokens
Every registration has a fetch token, an opaque bearer string of at least 128 random bits and at most 64 characters, optionally prefixed such as pf_; the home server stores only its SHA-256. It lets a notification extension read and mark records without the app's session tokens, whose refresh would race the main app and trip refresh-token reuse detection (19 §9.3). It authorizes exactly two operations:
- GET /v1/me/notifications/{id};
- POST /v1/me/notifications/read with the
idsselector.
Warning
A fetch token used on any other endpoint, or with another selector, gets 403 core.forbidden, not 401, so a main app that sends it by mistake doesn't start sign-in recovery. An unknown, rotated or expired fetch token gets 401 core.unauthenticated; the extension then sets a re-registration flag in shared storage and shows the fallback text (19 §9.3).
A fetch token expires 60 days after issue, earlier when rotated or when the registration ends.
Lifecycle
Your client's duties (19 §9.4):
- When the platform token changes, register the new token with the gateway and call PUT /v1/me/push-registrations/{id}.
- At least every 30 days, re-run
/v1/registerandPUTthe new push key withrotateFetchToken: true, in the background where the platform allows, so the fetch token never expires. - If the extension left the re-registration flag,
PUTwithrotateFetchToken: trueat the next run. - When the server's
webPushKeychanges, a web client unsubscribes, subscribes with the new key andPUTs; the server keeps the old key for that registration for at most 90 days (19 §12.4). - If the user turns notifications off in the OS, your client SHOULD
DELETEthe registration.
The server deletes a registration when the platform reports the token gone, after 3 consecutive rejected pushes or 7 days failing, or when a listed policy no longer allows its gateway, and emits push.registration_removed with reason gone, rejected or gateway_not_allowed. Re-register silently if you can; for gateway_not_allowed, tell the user once that this server doesn't deliver notifications to this app.
POST /v1/me/push-registrations/{id}/test creates a test record targeted at the calling device and pushes it to that registration only, ignoring every setting. It answers 202 with { "recordId": … }, at most 5 times per registration per hour (core.rate_limited). Wait up to 30 s for the push before showing troubleshooting help; a diagnostics view MAY show the registration's lastError (19 §9.2).
The push gateway
A push gateway forwards wake-ups for one app publisher's builds to APNs and FCM, because only the publisher holds the credentials those services require. It holds no accounts, records or keys, and it stays stateless apart from a replay cache (19 §11.1).
The official gateway
The project publishes its gateway as open-source software that implements 19 §11 completely, and runs it as the official gateway for the official iOS and Android apps. Official builds MUST use that software or a published open-source fork of it. Anyone who builds the app with their own APNs and FCM credentials runs their own copy for those builds (19 §11.1).
A server operator never needs to run a gateway. Server software MUST default to gatewayPolicy: "any", so the server delivers to whichever gateway each device names, including the official one. An operator MAY choose listed to deliver only to named gateways; apps whose gateway isn't listed then get no background notifications from that server. Under any, the project learns which home servers wake which official-app installations, when and with which push type, and nothing more (19 §21). See Running a server.
POST {gatewayUrl}/v1/push
Home servers call POST {gatewayUrl}/v1/push with up to 100 pushes per request and at most 256 KiB (19 §11.3):
POST /gw/v1/push HTTP/1.1
Host: push.example.net
Authorization: Bearer <sv-push+jwt>
Content-Type: application/json
{"pushes":[{"pushKey":"pk1.AQ3vTq0b9Xc2mW8yLr5uZp1sKd4fHg7jNe6aBt0iVo2xQyRw","type":"alert","payload":{"v":1,"h":"01a2424b-7a3c-7d1e-9f00-1b2c3d4e5f60","r":"01a24190-0c4e-7b8a-9d10-2e3f4a5b6c7d"},"ttlMs":86400000,"urgency":"high"}]}Each PushRequest has pushKey, type (alert, call or background), payload, ttlMs (0 to 86,400,000; 0 means now or never), urgency (high or normal) and an optional collapseKey. The gateway checks that the payload is at most 256 octets and MUST pass it on unchanged.
The response is 200 with one PushResult per push, in order:
status |
Meaning | Home server action |
|---|---|---|
accepted |
The platform accepted it | Set lastDeliveredAt |
gone |
The token is no longer valid (push.token_gone) | Delete the registration |
rejected |
Permanently refused: push.key_invalid, push.home_mismatch, push.type_unsupported, core.invalid_request | Count toward failing; don't retry |
deferred |
Temporary: core.rate_limited, push.upstream_unavailable | Retry |
A home server treats an unknown status as deferred. A rejected with push.type_unsupported doesn't count toward deletion; the server removes that type from the registration's types instead, and deletes the registration only if no type remains (19 §9.4). Whole-request failures are 400 core.invalid_request (malformed body or more than 100 pushes), 401 push.unauthenticated (retry with back-off, because keys may be propagating), 403 push.home_blocked (stop for 24 h), 413 core.too_large (split and resend), and 429 or 5xx (retry the whole batch with back-off, honouring Retry-After) (19 §11.3).
Authentication: sv-push+jwt
Every /v1/push request carries a request-bound JWS signed with one of the home server's sign keys (19 §11.4). It is a separate type from sv-s2s+jwt because a gateway has no canonical domain to put in aud, and so that neither token can be accepted as the other.
{"alg":"EdDSA","typ":"sv-push+jwt","kid":"a.com#2026-12a"}{"iss":"a.com","aud":"https://push.example.net/gw","htm":"POST","htu":"https://push.example.net/gw/v1/push","bh":"ASIAG67nKj2OLs5j85nfEpPVxyO029YjTqps8ZOYWoI","iat":1796408400,"exp":1796408460,"jti":"Wn4rT8yC1qL6vB0xK3mZ7g"}audisnormalize(gatewayUrl), andhtuisnormalize(gatewayUrl + "/v1/push"), computed fromgatewayUrlitself, never by appending toaud. For a gateway at the root of its host,audishttps://push.example.net/andhtuishttps://push.example.net/v1/push, not…net//v1/push.bhis the base64url SHA-256 of the body;expis at most 60 s afteriat;jtiis at least 16 random octets, base64url, and single use.- Make a new token, with a new
jti, for every attempt. The serialized token is at most 4,096 octets.
The gateway verifies it like an S2S token, steps G1 to G11 of 19 §11.5, then for each push opens the push key, checks that its bound home equals iss, checks the type suits the platform, and applies a per-key rate limit of at least 60 pushes per minute with bursts of 20 (deferred beyond it). Signed test vectors, including the root-path case, are in 19 §20.3; JWS rules are in Cryptography. The home server's batching, retry back-off, timeouts and per-connection address checks are in 19 §11.7.
What a push carries
The opaque payload
Every push carries exactly this, serialized with no white space and members in this order, always 93 octets (19 §10.1, §20.2):
{"v":1,"h":"01a2424b-7a3c-7d1e-9f00-1b2c3d4e5f60","r":"01a24190-0c4e-7b8a-9d10-2e3f4a5b6c7d"}his the NotificationRecordid.ris the PushRegistrationid. It lets an app signed in to several accounts, possibly on several home servers, pick the right fetch token and home server without the gateway or platform learning the account.
Receivers parse it as JSON, ignore unknown members, and treat v other than 1, or a missing h or r, as unusable. The receiver never needs to know which push type delivered it: it always fetches the record and acts on the record's state (19 §10.1).
Each security mode
| Insecure context | Secure context | |
|---|---|---|
| Push payload | {v,h,r}, 93 octets |
The same; nothing differs on the wire |
Preview in notify.event |
Optional, at most 140 scalar values | Forbidden; rejected with notify.secure_preview |
| Preview at a secure home server | Discarded on receipt (H6) | — |
ticket on the record |
Every device of the account | Enrolled devices only; others get null |
| Events endpoint returns | Plaintext Message objects | SealedMessages and mention hints, never decrypted |
| Device renders | preview.text, or the fetched content.text |
Decrypted text, with the signature verified, or the fallback text |
Source: 19 §4.7, §4.8, §6.2, §8.6, §10.1. On Web Push the payload is also encrypted end to end to the browser (19 §12.2).
Push types and platform mapping
| Push type | Used for | urgency |
ttlMs |
APNs | FCM |
|---|---|---|---|---|---|
alert |
New records of every kind except rings; rings for a device with no call registration; ring ends for Web Push |
high |
86,400,000 (24 h); for a call_ring record, as for call |
alert, priority 10, mutable-content: 1 |
Data-only, HIGH |
call |
call_ring records |
high |
Until call.expiresAt, at least 1,000 |
voip (topic <bundle ID>.voip), priority 10 |
As alert |
background |
Read sync, withdrawals, a ring answered or declined elsewhere | normal |
3,600,000 (1 h) | background, priority 5 |
Data-only, NORMAL |
Source: 19 §10.2, §10.3. The APNs alert body carries only a localization key, RECOMMENDED SV_NOTIFICATION, that the app maps to a generic text, so a timed-out iOS extension shows nothing about the message:
{"aps":{"alert":{"loc-key":"SV_NOTIFICATION"},"mutable-content":1,"sound":"default"},"sv":{"v":1,"h":"01a2424b-7a3c-7d1e-9f00-1b2c3d4e5f60","r":"01a24190-0c4e-7b8a-9d10-2e3f4a5b6c7d"}}FCM messages are data-only, so the app decides what to display. Collapse keys, which let the platform replace a ring with "Missed call", are an HMAC under a per-registration secret, so the gateway can't link two pushes about one call on two devices (19 §10.3, vectors in §20.1).
Handling a push on the device
On every push, the receiving code runs one procedure, D1 to D10, with a 5 s timeout on each request (19 §13.1):
- D1. Parse the payload. If unusable, show "New notification" and stop.
- D2. Look up
ramong this installation's registrations, for any account. If unknown (a stale install, a removed account, or a forged push), suppress it where the platform allows, or show the generic text with no sound. - D3. Skip
hif already handled (keep a 7-day set in shared storage), unless its notification is still displayed, in which case refresh it. - D4. Call GET /v1/me/notifications/{id} with the fetch token. On 404, show nothing where allowed. On 401, a timeout or any other error, show the fallback text; on 401 also set the re-registration flag.
- D5. If the record isn't
unread, remove its notification, re-check up to 10 other displayed notifications for the same context, update the badge, and stop. This is howbackgroundpushes clear the tray. - D6. If
display.previewsisnone, show the minimal text. - D6a. If the main app has pinned this context or its community as secure, or last knew it as a secure DM, treat the record as secure whatever
securitysays. - D7. Insecure context with
display.previewsfull: usepreview.text; with no preview but a ticket, fetch the events and use the latest message'scontent.text, shortened to 140 scalar values. In every other case, use the fallback text. - D8. Secure context (or D6a) with
display.previewsfull: fetch the events with the ticket, decrypt and verify as below. - D9. If a
mentionitem's decrypted content neither mentions the user nor replies to them withping: true: when the record has no other item, suppress the notification where the platform allows and mark the recordreadwith the fetch token; otherwise, or where it can't be suppressed, show the fallback text without the "mentioned you" wording. - D10. Display, grouped by (
host,ctx), after the display-name checks. Set the badge and recordhas handled.
The ticket request goes to the record's hostApi; a client that already has its own discovery result for host SHOULD use its own:
GET /server/v1/me/notifications/events HTTP/1.1
Host: chat.b.com
Authorization: Bearer et_Qm9kZ2V0LXRpY2tldC0wMDAxThe response is { "ctx": …, "items": [event envelopes in their current form], "readSeq": n }. Edited messages come in their current form and deleted ones as tombstones; events the recipient can no longer see are omitted (19 §8.6). If the item's seq is at most readSeq, the user already read it elsewhere: mark the record read and treat it as D5.
Warning
The events endpoint accepts only an event ticket. Every other credential, including a valid session token, gets 401 notify.ticket_invalid, never core.unauthenticated; don't treat it as a signed-out session. When access has ended it answers 403 notify.access_ended and deletes the ticket (19 §8.6).
Secure contexts only
In a secure context, D8 opens d.edit.sealed when the message.created item has a non-null edit, otherwise d.sealed, using only the notification key subset: the history key whose (host, ctx, gen, epoch, ekid) match. It verifies the sender's signature with the sender public-key cache, and the displayed sender MUST be the address whose key verified it, equal to both the record's and the event's sender.addr. Any missing key or failed check gives the fallback text, never partial content (19 §13.1, §13.2). The extension never holds the identity key, a device signing key, MLS state or session tokens, and never runs Argon2id. See MLS and sealed messages and Secure accounts.
D6a matters because a hosting server could otherwise claim a secure context is insecure and put forged plaintext, credited to a real member, on the lock screen (19 §13.1). When the epoch changed while the app wasn't running, the extension lacks the key and shows "Alice mentioned you in #Lobby"; that is expected and never presented as an error (19 §13.2).
Platform budgets
| Component | Budget | Notes |
|---|---|---|
| iOS Notification Service Extension | 20 s for D1–D10 | Memory around 24 MB: no MLS library, no Argon2id, streaming JSON, one event decrypted. Suppressing needs the com.apple.developer.usernotifications.filtering entitlement. |
| iOS PushKit handler | Report the call at once; caller details within 10 s | See Ringing |
| Android FCM service | 8 s | MUST post a visible notification for every alert and call push it doesn't suppress; MAY finish in an expedited job |
| Web service worker | 10 s | MUST call showNotification within waitUntil for every push |
When a budget runs out, show the fallback text (19 §13.3–§13.5, §13.8). The Android handler MUST use only the notification key subset even though it runs in the app's own process.
Fallback texts
When content can't or mustn't be shown, clients use the reference texts of 19 §13.7, such as "{Sender} mentioned you in #{channel}", "{count} new messages from {Sender}" and "Missed call from {Sender}". They never contain message content, never say that decryption failed, and never use security-warning wording, which is why account_alert only says "Open Sloppy Voice to review a change to your account". Localization is in Client requirements.
Ringing
DM call rings use the same pipeline with a few differences (19 §14):
- The hosting server sends
call_ringto each target's home server whatever the target's sessions are, never coalesced, on thehighlane, expiring with the ring 45 s after it started. A ring of the same call again sends a newcall_ringwith a newexpiresAt. - If the DM index entry is still
requested, the call is recorded in the request and nothing rings. Otherwise the settings decidesilentornotify(19 §14.2). - The home server creates a
call_ringrecord withcall.state: "ringing". Fornotifyit pushes per device: typecallto a device's registrations that listcall, or, for a device with none,alertwithurgency: high. Devices with an attentive session at the home server get no push; connected desktop and web clients show their incoming-call screen fromnotification.createdunless the record issilent. - If the ring's
expiresAthas already passed when the home server processes it, the record is createdendedwithendReason: "timeout"and a missed call is recorded instead of ringing. - A ring record is identified by (
host,ctx,callId,expiresAt), because the same call can ring again; a newer ring supersedes an older one.
When the ring ends, the home server updates the record and pushes to each device that was pushed the ring (19 §14.3):
reason |
Record | Push |
|---|---|---|
answered, declined |
Ring record → read |
background with the call's collapse key; a browser gets an alert instead |
timeout, cancelled |
Ring record → read; a call_missed record is created, silent if the ring was (at most one unread per call; a later missed ring of the same call updates it without a new push) |
alert of the call_missed record with the call's collapse key, replacing the ringing notification where the platform collapses |
A repeated or late end changes nothing once the record is ended. If call_ring_ended arrives before its ring, or for a ring the home server never saw, the home server keeps a 120 s tombstone, so a ring that arrives later is created already ended and read and doesn't ring. For reason timeout or cancelled it also records a missed call from the end event (19 §6.3).
On iOS, every PushKit push MUST lead to CXProvider.reportNewIncomingCall before the handler returns, or iOS stops delivering VoIP pushes to the app (19 §13.3):
- Report the call at once, with the generic caller "Sloppy Voice call" and
has the call's UUID. - Fetch the record and update the caller name, DM or group name and
hasVideo. - If the record isn't
unread,call.stateisended, orcall.expiresAthas passed, end the call at once. - If the fetch fails, keep ringing with the generic caller until
call.expiresAt, or 45 s after the push. - If
ris unknown, still report the call and end it at once withCXCallEndedReason.failed.
On every device (19 §14.4):
- Stop ringing at
call.expiresAton your own clock, whether or not an end arrives. - To answer, open a remote session at the hosting server and join with
create: false; if the call has ended you get call.not_active. - To decline, call POST /v1/contexts/{ctx}/call/decline at the hosting server, within 10 s if you can.
- A desktop or web client connected to both servers gets the ring twice, as call.ringing and as
notification.created. Keep one incoming-call window per (host,ctx,callId), and apply the synced settings anddndtocall.ringingbefore alerting, because the hosting server doesn't know them (19 §13.6).
Call control itself is covered in Calls.
Badges and read sync
The badge of an account, for one device, is the number of unread, non-silent records visible to that device, capped at 9,999. The home server returns it with every record fetch, list and notification.* event, computed per device. The app icon shows the sum over every account signed in on the device (19 §15.1). The badge counts notifications, not every unread channel message; in-app unread indicators come from ReadState.
Read state reaches the home server from the reading client, not from the hosting server (19 §15.2):
- When your client advances its read position in a context that has
unreadrecords, it posts{host, ctx, throughSeq}to POST /v1/me/notifications/read: at most one call per context every 2 s, plus one when the user leaves the context. - The home server marks the records
read, emits notification.state_changed, and sends abackgroundpush to each registration of the account's other devices that was pushed one of those records and listsbackground, at most one per registration per 30 s. - Those devices run D1 to D10, find the record no longer
unread, and clear the context's notifications and update the badge.
Background pushes are best effort on iOS and Android, and Web Push has none; app reconciliation on start covers whatever they miss.
Events
| Event | Where | Payload |
|---|---|---|
| notify.triggered | me at the hosting server, ephemeral |
{ctx, kind, seq, mid, sender, at} |
| notification.created | me at the home server |
{record, badge} |
| notification.updated | me at the home server |
{record, badge}, the full new state |
| notification.state_changed | me at the home server |
{ids, state, badge}, at most 100 IDs |
| notification.settings_changed | me at the home server |
{scope, settings}, scope being global, community or context |
| push.registration_removed | me at the home server |
{id, did, reason}, reason being gone, rejected or gateway_not_allowed |
{
"v": 1,
"t": "notification.state_changed",
"id": "01a2424c-6a00-7b11-8c22-3d4e5f607100",
"ctx": "me",
"seq": 812,
"ts": "2026-12-04T19:05:40.002Z",
"d": { "ids": ["01a2424b-7a3c-7d1e-9f00-1b2c3d4e5f60"], "state": "read", "badge": 2 }
}badge, ids and record.ticket are computed per receiving session. A session whose device isn't in a record's targets gets the reduced payload { "record": null, "id": …, "badge": n } and applies only the badge; ids may be empty. Treat unknown state, scope and reason values as nothing to act on apart from the badge (19 §16.1).
Gaps in the specification
These are open in document 19 as written; link to the section rather than guess:
- The Web Push encryption test vector is not yet computed (19 §20.6). Pass RFC 8291 Appendix A first.
- A
dm_messagerecord built from an auto-accepted DM request has no event ticket (19 §6.5), so in a secure DM devices can only show the fallback text for it. - A missed call recorded from a
call_ring_endedalone getsvideo: false, because the end event carries no video flag (19 §6.3). - The per-ticket and test-push rate limits name no
data.policyfor core.rate_limited (19 §8.6, §9.2). - Nothing says what a sender does with a
notify.eventthat is still over 8 KiB after trimming (19 §5.1). - 19 §4.4 sends
notify.triggeredto every connected session "attentive or not", but the §4.5 state machine lists it only where the recipient is attentive. Treat it as possibly absent for a backgrounded session. - An
apnspush key takes onlyalertandbackgroundper 19 §9.1, but §11.5 lets a gateway acceptcallon it asalert. List onlyalertandbackground. - Bot tokens get 403 core.forbidden on settings and records (19 §7, §8.3), but a bot device registering for push gets 403 push.device_not_eligible (19 §9.2). The spec doesn't say which of the two a bot token gets on the other
/v1/me/push-registrationsendpoints; a bot client handles both. GETof a missing community or context settings entry returns defaults, butupdatedAtis typed as a non-null string there (19 §7.2, §7.3); only the global object allows null.- v1 offers channels no "All messages" level; 19 §22 records that as an open question, along with whether DM calls should break through do-not-disturb.