Skip to content

Commit

Permalink
Implement support for notifications (blakeblackshear#12523)
Browse files Browse the repository at this point in the history
* Setup basic notification page

* Add basic notification implementation

* Register for push notifications

* Implement dispatching

* Add fields

* Handle image and link

* Add notification config

* Add field for users notification tokens

* Implement saving of notification tokens

* Implement VAPID key generation

* Implement public key encoding

* Implement webpush from server

* Implement push notification handling

* Make notifications config only

* Add maskable icon

* Use zod form to control notification settings in the UI

* Use js

* Always open notification

* Support multiple endpoints

* Handle cleaning up expired notification registrations

* Correctly unsubscribe notifications

* Change ttl dynamically

* Add note about notification latency and features

* Cleanup docs

* Fix firefox pushes

* Add links to docs and improve formatting

* Improve wording

* Fix docstring

Co-authored-by: Blake Blackshear <[email protected]>

* Handle case where native auth is not enabled

* Show errors in UI

---------

Co-authored-by: Blake Blackshear <[email protected]>
  • Loading branch information
2 people authored and iursevla committed Sep 1, 2024
1 parent fa771d0 commit 08dc016
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frigate/api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from frigate.api.event import EventBp
from frigate.api.export import ExportBp
from frigate.api.media import MediaBp
from frigate.api.notification import NotificationBp
from frigate.api.review import ReviewBp
from frigate.config import FrigateConfig
from frigate.const import CONFIG_DIR
Expand Down Expand Up @@ -52,6 +53,7 @@
bp.register_blueprint(NotificationBp)

router = APIRouter()
bp.register_blueprint(NotificationBp)


def create_app(
Expand Down

0 comments on commit 08dc016

Please sign in to comment.