Skip to content

Web service worker + subscription flow (apps/web) #240

Description

@codebestia

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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions