Skip to content

feat: implement push notification system with VAPID-based PWA push notifications#433

Open
Tobiloba0 wants to merge 1 commit into
Smartdevs17:mainfrom
Tobiloba0:main
Open

feat: implement push notification system with VAPID-based PWA push notifications#433
Tobiloba0 wants to merge 1 commit into
Smartdevs17:mainfrom
Tobiloba0:main

Conversation

@Tobiloba0
Copy link
Copy Markdown

#closes #357

What Changed

Implemented a complete push notification system for the Progressive Web App using the VAPID protocol and service workers.

Features Added

  • Added VAPID key generation and management service.
  • Implemented push notification subscription and unsubscription endpoints.
  • Added service worker registration and push event handling.
  • Introduced notification categories and user preference management.
  • Added notification click tracking and deep-link navigation support.
  • Implemented fallback in-app notifications when push notifications are unavailable.
  • Added handling for notification permission revocation.
  • Improved service worker update lifecycle management.
  • Added notification grouping support to reduce notification clutter.

Files Changed

  • frontend/service-worker.ts
  • frontend/components/PWAInstallPrompt.tsx
  • backend/src/services/vapid.ts
  • backend/src/services/push.ts
  • backend/src/routes/push.ts

Why

This PR enables real-time user engagement through web push notifications, allowing users to receive payment and dispute updates even when the application is not actively open. It improves the overall PWA experience while providing fallback mechanisms for environments where push notifications are unavailable or permissions have been revoked.

Testing

  • Verified VAPID key generation and validation.
  • Tested notification subscription and unsubscription flows.
  • Tested service worker registration and push event handling.
  • Verified notification click actions and deep-link navigation.
  • Tested notification preference filtering by category.
  • Verified fallback in-app notifications when push is unsupported.
  • Tested service worker update cycle behavior.
  • Verified handling of notification permission revocation.

Related Issues

Closes #357

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

@Tobiloba0 is attempting to deploy a commit to the smartdevs17's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@Tobiloba0 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement push notification system with PWA support

1 participant