November 30, 2026
End-to-end encryption hides message contents, not identities. To send push notifications, a server holds a device token that can lead back to a person. We propose a way for a server to notify a user without knowing who that user is.
“APNS” (Apple Push Notification service) in this article also covers Google’s Firebase Cloud Messaging (FCM), Huawei Push Kit, and other push services.
To push to Alice, a server stores her phone’s device token. The token ties everything the server records about her, such as user IDs, IP addresses, and location, to one device. With Apple’s or Google’s cooperation, those records can be linked to her real identity. On a social network, messaging service, or any platform where people interact, this also exposes her relationships and communication patterns.
The goal: the server can reach Alice but can’t tell who she is.
How it works today
Alice’s phone registers with APNS, gets a device token, and passes it to the server. The server sends notifications through APNS.
sequenceDiagram
participant Phone as Alice's phone
participant Server
participant Push as APNS, FCM, ...
Phone->>Push: Register
Push->>Phone: Device token
Phone->>Server: Device token
Note over Server: Knows the device token<br/>and holds APNS credentials
Server->>Push: APNS credentials and notification
Push->>Phone: Deliver
Add a relay
Alice doesn’t give the server a device token. Instead, she anonymously tells it: to reach me, send it through this relay.
Alice controls the relay, such as a cloud server or smart home device she owns. The relay handles only push. It encrypts and pads each notification and forwards it to APNS, so the server and Apple or Google can’t match what one sent with what the other received.
The authorization problem
The relay has to authenticate to APNS. But today’s credentials, such as APNS authentication tokens and FCM’s OAuth 2.0 access tokens, aren’t limited to one destination. A relay holding one can send to any device within the credential’s scope, as long as it knows the device token.
sequenceDiagram
participant Relay as Alice's relay
participant Push as APNS, FCM, ...
participant Phone as Alice's phone
participant Other as Another phone
Note over Relay: Holds the server's<br/>APNS credentials
Relay->>Push: Credentials and Alice's device token
Push->>Phone: Deliver
Relay->>Push: Same credentials, another device token
Push->>Other: Deliver
Note over Other: Credentials are not limited<br/>to one device
Short-lived credentials don’t help: while valid, they grant the same authority. An HSM doesn’t help either. It’s still a signing oracle for arbitrary destinations.
The relay needs a way to reach only Alice’s phone without the server learning the destination.
Two separate flows
1. Alice contacts the server
The server validates Alice and blind-signs a batch of auth tokens created by her phone, using the same key for all users. Later, the phone contacts the server and presents an unused token. The server recognizes its own signature, so it knows the user is authorized, but not which user it is. This connection should use an IP address that the server can’t link to Alice. There are many ways to get one, such as coffee shop Wi-Fi.
Over such a connection, Alice tells the server which relay to use. She can also store encrypted data or use anything else the server offers.
sequenceDiagram
participant Phone as Alice's phone
participant Server
Phone->>Server: Sign in and send blinded auth tokens
Note over Server: Validate the user
Server->>Phone: Blind signatures
Note over Phone: Remove the blinding
Note over Phone,Server: Later
Phone->>Server: Unused auth token
Note over Server: An authorized user,<br/>but which one is unknown
Phone->>Server: To reach me, use this relay
2. The server reaches Alice
A push needs two signatures, and APNS requires both:
- APNS signs the destination. At registration, Alice’s phone gets a destination credential containing the device token and expiration. The phone gives it to the relay, never to the server.
- The server signs an authorization to send, so the relay doesn’t need the server’s APNS credentials. The authorization has an expiration time, but no nonce and nothing about Alice. Every relay gets the identical authorization.
The receiving app also creates a key pair and gives the relay the public key. The app keeps the private key, so only the app can decrypt the notifications.
sequenceDiagram
participant Server
participant Relay as Alice's relay
participant Push as APNS, FCM, ...
participant Phone as Alice's phone
participant Other as Another phone
Note over Phone: Create a key pair
Phone->>Push: Register with APNS
Push->>Phone: Signed destination credential
Phone->>Relay: Destination credential and public key
Server->>Relay: Notification and signed authorization
Note over Relay: Encrypt and pad<br/>the notification
Relay->>Push: Encrypted notification and both signatures
Note over Push: Verify both signatures
Push->>Phone: Encrypted notification
Note over Phone: Decrypt with<br/>the private key
Relay->>Push: Another destination, no signed credential
Push-->>Relay: Reject
Note over Other: Relay cannot send<br/>to arbitrary phones
A compromised relay can reach only its owner’s phone, but it can send that phone any content in the server’s name. If that matters, have the server sign the content of each notification and the app verify the signature.
How to reach the relay
The relay’s address can identify Alice. Say the server knows it sends a user’s notifications to address X, and Apple or Google knows that requests from address X go to Alice’s phone. Together, they know the user is Alice.
Potential solutions:
- Separate addresses. The relay receives notifications from the server at one address and sends them to APNS from another.
- Relay groups. The server notifies a group that includes the relay. Alice tells the server which group to use and gives it a separate public key. The private key stays on her relay. The server encrypts each notification with that public key and sends it to the group. Every relay in the group receives it, but only Alice’s relay can open it and recognize it as hers. The server learns only the group. A larger group hides Alice among more people, but each relay gets more traffic.
Timing attacks
One risk remains. A server that actively cooperates with Apple or Google can compare when it sent notifications with when they reached phones. Over several notifications to the same user, this can point to Alice’s phone.
Occasional notifications, such as call-me-back notifications in Crosspass: Alice requests each one under a new throwaway auth token and with a new public key, so the server can’t tell that two notifications go to the same user. She can keep the same relay if it belongs to a large relay group. With a large network and a small random delay, one notification could match many phones. This doesn’t work for instant messaging, where frequent notifications to the same user remain open to timing attacks.
Frequent notifications: the relay sends Alice’s phone one message on a fixed schedule, such as once a minute: either a waiting notification or a dummy. Every message is encrypted and padded, so APNS can’t tell them apart, and delivery times reveal nothing about when the server sent anything. The cost is delay and battery use. APNS would also need to allow this traffic and let the phone discard dummies silently.
What APNS, FCM, and similar services need to add
These additions would work alongside the existing APIs:
- Issue signed destination credentials containing a device token and expiration.
- Register each server’s verification key.
- Accept a destination credential and the server’s signed authorization instead of today’s credentials.
- Accept a server’s authorization only for destinations belonging to that server’s app.
- Verify both signatures, and reject invalid or expired requests.
- Protect against replayed requests, for example with a single-use value that APNS issues to the relay for each request and the server never sees.
In short: APNS authorizes where a notification may go. The server authorizes the sending, without learning who receives it.
Keep reading
-
Encrypting App Data at Rest on macOS
September 13, 2026
Entelecheia builds software for handling confidential data, and secure local storage is foundational to that work. We’re open-sourcing our approach to storing data securely on …