diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-12-30 00:19:33 +0800 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-12-30 00:19:33 +0800 |
| commit | 2495f6ca950bf23e6e4c394297268258554c48d2 (patch) | |
| tree | 7832628625b127db95317d55ae12f581be1264b3 /backend/notif.py | |
| parent | 72e08569e6e9529b1d95c3a6632f0c3f5fec1a2d (diff) | |
IT'S ALMOST WORKING
Diffstat (limited to 'backend/notif.py')
| -rw-r--r-- | backend/notif.py | 5 |
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", |
