docs: push notifications module + FCM client wiring

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-10 11:46:39 +02:00
co-authored by Claude Sonnet 5
parent 530be36458
commit d8aa30c606
4 changed files with 39 additions and 20 deletions
+5
View File
@@ -59,6 +59,11 @@ Teamer login only).
(`verantwortliche_register_screen.dart`) — shown on the home screen to a
logged-in Authentik user without a membership: enter a KC invite code,
pick a Gemeinde, submit; a Leitungsteam member then approves.
- **Push (web)** — `web/index.html` loads the Firebase compat SDK and
`web/firebase-messaging-sw.js` handles background messages. After login
`AppState` calls `window.kcGetPushToken()` and registers the token
(`POST /push/register`). Inert until `apiKey` / `appId` / `vapidKey` are
filled into both files (see the `REPLACE_ME` placeholders).
- **Workshop-Wahl** (`lib/screens/wahl_screen.dart`, guests) — two tabs:
*Wünsche* (`GET /wahl/guest/overview`, tap workshops in order, max 3,
`POST /wahl/:id/teilnehmer`) and *Ergebnis* (`GET /wahl/guest/results`