summaryrefslogtreecommitdiff
path: root/backend/notif_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'backend/notif_test.py')
-rw-r--r--backend/notif_test.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/backend/notif_test.py b/backend/notif_test.py
new file mode 100644
index 0000000..b6f843e
--- /dev/null
+++ b/backend/notif_test.py
@@ -0,0 +1,14 @@
+import notif
+
+endpoint_to_test = "https://fcm.googleapis.com/fcm/send/f4Cw12WAYnE:APA91bHOZvh8HkExsem20UK_5uhzgCu0dEo01YV8G8-9hFBjEdsk1M49JVLD7Z51BDP7gxn_UAXVwvmYxIWajwQ9VyTS3ghNQzx92jex-isbz5IvzcpI0QOxaVnmoURLtK-qYt36ebic"
+endpoint_to_test = "https://fcm.googleapis.com/preprod/wp/dP2ULA5s2Fk:APA91bE6toPxR5LbakAronwoI2QfdSe6NIEAzVBoIq0Q5jUF8hkFskAT_PyHYwwUiJpJgF8xcCr_8CEzE83YTsUGZWyvcI53DiwjkDD4IK1UseK2bX-WaXVRRXBLM5wTHCKs1ZfG2rME"
+
+notif.send_notification(
+ endpoint_to_test,
+ {
+ "title": "Test Notification",
+ "body": "Hello, world pls work",
+ "requireInteraction": True,
+ "timerId": 0,
+ }
+)