diff --git a/frigate/comms/webpush.py b/frigate/comms/webpush.py index dffe4518c..c2e9e629b 100644 --- a/frigate/comms/webpush.py +++ b/frigate/comms/webpush.py @@ -253,6 +253,7 @@ class WebPushClient(Communicator): # type: ignore[misc] payload={}, title="Test Notification", message="This is a test notification from Frigate.", + direct_url="/", notification_type="test", ) @@ -309,4 +310,5 @@ class WebPushClient(Communicator): # type: ignore[misc] self.cleanup_registrations() def stop(self) -> None: + logger.info("Closing notification queue") self.notification_thread.join() diff --git a/web/src/views/settings/NotificationsSettingsView.tsx b/web/src/views/settings/NotificationsSettingsView.tsx index daa84ec52..5ea545fb3 100644 --- a/web/src/views/settings/NotificationsSettingsView.tsx +++ b/web/src/views/settings/NotificationsSettingsView.tsx @@ -144,7 +144,7 @@ export default function NotificationView({ setRegistration(null); }); toast.success( - "Successfully registered for notifications. Restart to start receiving notifications.", + "Successfully registered for notifications. Restarting Frigate is required before any notifications (including a test notification) can be sent.", { position: "top-center", }, @@ -438,7 +438,7 @@ export default function NotificationView({