summaryrefslogtreecommitdiff
path: root/backend/notif_test.py
blob: b6f843e87d776cde2981302928081f847e0672a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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,
    }
)