docs: document push token and firebase notification setup
Some checks failed
Android CI / android (push) Failing after 4m47s
Android Release / release (push) Has started running
CI / test (push) Has been cancelled

This commit is contained in:
Codex
2026-03-09 23:12:54 +03:00
parent ef28c165e6
commit 9296695ed5
3 changed files with 55 additions and 1 deletions

View File

@@ -1106,6 +1106,36 @@ Response: `200` + `ChatAttachmentRead[]`
Auth required.
Response: `200` + `NotificationRead[]`
### POST `/api/v1/notifications/push-token`
Auth required.
Body: `PushTokenUpsertRequest`
```json
{
"platform": "android",
"token": "fcm_registration_token",
"device_id": "optional_device_id",
"app_version": "0.1.0"
}
```
Response: `204`
### DELETE `/api/v1/notifications/push-token`
Auth required.
Body: `PushTokenDeleteRequest`
```json
{
"platform": "web",
"token": "fcm_registration_token"
}
```
Response: `204`
## 11. Realtime WebSocket
### Endpoint

View File

@@ -11,7 +11,7 @@ Backend покрывает web-функционал почти полность
- `realtime`: websocket + typing/read/delivered/ping-pong
- `users`: search/profile/blocked/contacts
- `search`: global search
- `notifications`: list
- `notifications`: list + push-token register/unregister
Вывод: текущие проблемы в основном на стороне клиентской интеграции/UX, не backend-contract.
@@ -19,6 +19,8 @@ Backend покрывает web-функционал почти полность
- `GET /api/v1/messages/{message_id}/thread` (data layer wired, UI thread screen/jump usage pending)
- `GET /api/v1/notifications`
- `POST /api/v1/notifications/push-token`
- `DELETE /api/v1/notifications/push-token`
- `POST /api/v1/auth/resend-verification`
## 3) Practical status
@@ -32,3 +34,4 @@ Backend покрывает web-функционал почти полность
- `GET /api/v1/messages/{message_id}/thread` (UI usage)
- notifications API + UI inbox flow
- notifications delivery polish (channels/grouping/snooze/per-chat overrides parity with web prefs)