summaryrefslogtreecommitdiff
path: root/backend/notif_test.py
blob: fb558e2ba60797db31d56ac019dc9644e9ece54a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import notif

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,
    }
)