Pick the fix
With end-to-end encryption, how do you show message previews in push notifications?
Hint 1 of 1
Which part of the app runs when a push arrives?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Send an encrypted payload with mutable-content, and decrypt it in a Notification Service Extension with keys from a shared Keychain group
Correct. The server never sees plaintext, and the user still sees the preview.
Why not the others?
- B Have the server include a plaintext preview. The server would read the message, which breaks E2EE.
- C Show only 'New message' forever. It's secure, but gives up a feature the extension can provide.
- D Decrypt only after the user opens the app. Previews would never appear in the notification.