diff options
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/notif_test.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/backend/notif_test.py b/backend/notif_test.py index 2cb4fb4..fb558e2 100644 --- a/backend/notif_test.py +++ b/backend/notif_test.py @@ -1,5 +1,13 @@ import notif -endpoint_to_test = "https://fcm.googleapis.com/fcm/send/c14_JXV1C_4:APA91bHzdw7uXAJdjb0mZMwFS_j3Y1NEpbXUS9n4TEwak3zLcDFZjjKpJHkPdZC-2FCWL7aeIUYL9w18ZppDX3mec-lA48b-bPnOJr5GSh6AYaq4zFtu_nM3u4aVoN_ga1pFwtCEqTm8" -endpoint_to_test = "https://fcm.googleapis.com/preprod/wp/dw-b_ojDv5E:APA91bHTtBPHo0XLqIdaoR-AakuximlZSgB0P1yJ7Ww66T8HVTrT73uoPoJ7uKGWSWz7RhtX2ZUZaLxWEnhHiNlZjNCYlID2jUHjV3EtktQvH7oBPRk6qvFaiqdhKmvutpXcDGdgDCtg" -notif.send_notification(endpoint_to_test, {"title": "This is a test", "body": "Hello, world!"}) +endpoint_to_test = "https://fcm.googleapis.com/fcm/send/f4Cw12WAYnE:APA91bHOZvh8HkExsem20UK_5uhzgCu0dEo01YV8G8-9hFBjEdsk1M49JVLD7Z51BDP7gxn_UAXVwvmYxIWajwQ9VyTS3ghNQzx92jex-isbz5IvzcpI0QOxaVnmoURLtK-qYt36ebic" + +notif.send_notification( + endpoint_to_test, + { + "title": "Test Notification", + "body": "Hello, world pls work", + "requireInteraction": True, + "timerId": 0, + } +) |
