feat: Implement push notification system for OneUptime #422

Closed
opened 2026-04-05 16:19:41 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @simlarsen on 7/15/2025

  • Added UserPushAPI for managing device registrations and notifications.
  • Created PushNotificationService for sending notifications via Web Push and Firebase.
  • Developed UserPushService for CRUD operations on user push devices.
  • Introduced PushNotificationUtil for generating notification messages.
  • Defined PushNotificationMessage and PushNotificationRequest types for structured data.
  • Integrated service worker (sw.js) for handling push notifications in the browser.
  • Built React component (Push.tsx) for user interface to manage push notifications.
  • Documented implementation details and usage in PUSH_NOTIFICATIONS.md.
  • Added support for device registration, verification, and test notifications.
  • Enhanced security features including user-scoped access and device verification.

Title of this pull request?

Small Description?

Pull Request Checklist:

  • Please make sure all jobs pass before requesting a review.
  • Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if such).
  • Have you lint your code locally before submission?
  • Did you write tests where appropriate?

Screenshots (if appropriate):

*Originally created by @simlarsen on 7/15/2025* - Added UserPushAPI for managing device registrations and notifications. - Created PushNotificationService for sending notifications via Web Push and Firebase. - Developed UserPushService for CRUD operations on user push devices. - Introduced PushNotificationUtil for generating notification messages. - Defined PushNotificationMessage and PushNotificationRequest types for structured data. - Integrated service worker (sw.js) for handling push notifications in the browser. - Built React component (Push.tsx) for user interface to manage push notifications. - Documented implementation details and usage in PUSH_NOTIFICATIONS.md. - Added support for device registration, verification, and test notifications. - Enhanced security features including user-scoped access and device verification. ### Title of this pull request? ### Small Description? ### Pull Request Checklist: - [ ] Please make sure all jobs pass before requesting a review. - [ ] Put `closes #XXXX` in your comment to auto-close the issue that your PR fixes (if such). - [ ] Have you lint your code locally before submission? - [ ] Did you write tests where appropriate? ### Related Issue? ### Screenshots (if appropriate):
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/oneuptime#422