Trying NTFY priority of 5 to get better Firebase notifications

This commit is contained in:
Magnus Åhall 2024-07-19 10:11:53 +02:00
parent 1deb80c776
commit a8bdeae3a9

View File

@ -81,7 +81,7 @@ func (ntfy NTFY) Send(problemID int, msg []byte) (err error) {
ackURL := fmt.Sprintf("http, OK, %s/notification/ack?problemID=%d", ntfy.AcknowledgeURL, problemID)
req.Header.Add("X-Actions", ackURL)
req.Header.Add("X-Priority", "4") // XXX: should be 5
req.Header.Add("X-Priority", "5")
req.Header.Add("X-Tags", "calendar")
res, err = http.DefaultClient.Do(req)