The compatible server protocol supports end-to-end encryption (E2EE) for
mobile push payloads starting with Zulip 11.0. In this commercial fork,
notifications use the push service and routes configured by the operator;
No shared public gateway is required. The route delivers to the
configured platform provider, including FCM or APNs.
Encryption protects the notification payload from intermediaries, while routing
tokens, provider headers, and delivery timing remain visible to the services
handling delivery. This is push-payload encryption, not proof of end-to-end
encryption for message storage or all conversations.
Mobile clients that have registered an E2EE push
device will receive mobile notifications
end-to-end encrypted by their organization server.
This page documents the format of the encrypted JSON-format payloads
that the client will receive through this protocol. The same encrypted
payload formats are used for both Firebase Cloud Messaging (FCM) and
Apple Push Notification service (APNs).
Organization names and addresses below are illustrative; use the values
for your own organization. Field names retain their protocol meanings.
The mentioned_user_group_id and mentioned_user_group_name fields
are only present for messages that mention a group containing the
current user, and triggered a mobile notification because of that
group mention. For example, messages that mention both the user
directly and a group containing the user, these fields will not be
present in the payload, because the direct mention has precedence.
The recipient_user_ids field is a sorted array of all user IDs in
the direct message conversation, including both user_id and
sender_id.
Changes: In Zulip 12.0 (feature level 429), replaced the
pm_users field with recipient_user_ids. The old pm_users field
was only present for group DMs, and was a string containing a
comma-separated list of sorted user IDs.
New in Zulip 11.0 (feature level 413).
Remove notifications
When a batch of messages that had previously been included in mobile
notifications are marked as read, are deleted, become inaccessible, or
otherwise should no longer be displayed to the user, a removal
notification is sent.
Changes: In Zulip 12.0 (feature level 468), the device_id and
push_account_id fields were replaced with token_id and push_key_id
to support the rotation of tokens provided by FCM/APNs and keys used
to encrypt push notifications.
Changes: In Zulip 12.0 (feature level 468), the push_account_id
field was replaced with push_key_id to support the rotation of
keys used to encrypt push notifications.
New in Zulip 11.0 (feature level 413).
Data sent to APNs
The compatible push implementation uses aioapns to access APNs.
A sample request argument, which is internally used by the library to prepare payload for APNs,
passed to aioapns.APNs.send_notification:
Changes: In Zulip 12.0 (feature level 468), the push_account_id
field was replaced with push_key_id to support the rotation of
keys used to encrypt push notifications.
New in Zulip 11.0 (feature level 413).
In the commercial fork's configured route flow, a test payload can additionally
include delivery_trace_id for correlating dispatch evidence. Clients should
accept unknown optional fields. A trace ID or accepted-route counter does not
prove that a device received, decrypted, or displayed the notification.
Deployment and keys
For SaaS, hybrid, on-premises, and carrier-managed services, agree on the
push operator, outbound routes, provider application identities, and customer
credential isolation. An on-premises server still needs a route to the chosen
external device provider for provider push. Register each device against the
correct organization and app brand; verify cold delivery on physical devices.
A provider accepting a request is not proof that the device displayed it.
Provider credentials, device tokens, push encryption keys, and BYOK storage keys
have different purposes and rotation procedures. BYOK at rest does not replace
push-device key registration or provider credentials. This page documents the
payload formats; it does not confirm a live deployment or provider registration.