Skip to content

Web Push pipeline for stealth payment alerts #158

Description

@truthixify

Tier: M (2-4 days) | Type: feature

Context. Wave 7 shipped in-app notification history but delivery still depends on an open tab. Web Push over the existing stellar-notification-sw.ts reaches users when the app is closed. Keep it privacy-first: subscribe via a self-hostable relay whose URL the user can override in Settings.

Scope.

  • Subscribe flow that requests the browser Notifications permission and registers a PushSubscription with a relay endpoint.
  • Relay URL is user-configurable and defaults to the demo's own dev relay; docs cover self-hosting.
  • Service worker handles push events, deduplicates against notification history.
  • Unsubscribe from Settings; clear surfaces subscription state.

Acceptance.

  • Push fires with the tab closed on Chrome desktop and Android Chrome
  • Denied-permission path renders the fallback copy from the Wave 7 notification page
  • No payload leaves the SW without at least the meta-address hash as the only identifier
  • Unsubscribing removes the subscription from the relay

Files. src/sw/stellar-notification-sw.ts, src/hooks/useNotificationSW.ts, src/pages/Settings.tsx, src/lib/pushRelay.ts (new).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave programdemoAuto-created for Wave 8dripsFunded via Drips NetworkfeatureNew feature workhelp wantedExtra attention is needednotificationsAuto-created for Wave 8stellarTouches Stellar / Soroban codestellar-waveAuto-created for Wave 8wave-8Auto-created for Wave 8

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions