summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rw-r--r--backend/notif.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/notif.py b/backend/notif.py
index 8de4d4c..d454a7c 100644
--- a/backend/notif.py
+++ b/backend/notif.py
@@ -64,7 +64,10 @@ def send_notification(endpoint: str):
try:
webpush(
subscription_info=subscription_info,
- data="Hello, world!",
+ data={
+ "title": "Hello, world!",
+ "body": "Hello, Victoria Hall!"
+ },
vapid_private_key=PRIVATE_VAPID_KEY,
vapid_claims={
"sub": "mailto:dev@altafcreator.com",