In apps/web, add a service worker that subscribes to push using the VAPID public key, posts the subscription to /push/subscriptions, and on push shows a content-free notification that on click focuses/opens the app and triggers a sync. Request permission contextually, not on first load.
Acceptance criteria:
- SW registers + subscribes after user grants permission
- Subscription persisted server-side
- Clicking the notification opens the conversation and syncs
In
apps/web, add a service worker that subscribes to push using the VAPID public key, posts the subscription to/push/subscriptions, and onpushshows a content-free notification that on click focuses/opens the app and triggers a sync. Request permission contextually, not on first load.Acceptance criteria: