push_notification: Add support to send E2EE test push notification.

This commit adds an endpoint `/mobile_push/e2ee/test_notification`
to send an end-to-end encrypted test push notification to the user's
selected mobile device or all of their mobile devices.
This commit is contained in:
Prakhar Pratyush
2025-08-07 18:35:13 +05:30
committed by Tim Abbott
parent f034a6c3b4
commit 3cbf0e70a2
14 changed files with 506 additions and 13 deletions

View File

@@ -59,7 +59,7 @@ Sample JSON data that gets encrypted:
{
"content": "test content",
"message_id": 46,
"pm_users": "6,10,12,15"
"pm_users": "6,10,12,15",
"realm_name": "Zulip Dev",
"realm_url": "http://zulip.testserver",
"recipient_type": "direct",
@@ -106,6 +106,24 @@ Sample JSON data that gets encrypted:
**Changes**: New in Zulip 11.0 (feature level 413).
### Test push notification
A user can trigger [sending an E2EE test push notification](/api/e2ee-test-notify)
to the user's selected mobile device or all of their mobile devices.
Sample JSON data that gets encrypted:
```json
{
"realm_name": "Zulip Dev",
"realm_url": "http://zulip.testserver",
"time": 1754577820,
"type": "test",
"user_id": 10
}
```
**Changes**: New in Zulip 11.0 (feature level 420).
## Future work
This page will eventually also document the formats of the APNs and