Trying NTFY priority of 5 to get better Firebase notifications
This commit is contained in:
parent
1deb80c776
commit
a8bdeae3a9
@ -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)
|
ackURL := fmt.Sprintf("http, OK, %s/notification/ack?problemID=%d", ntfy.AcknowledgeURL, problemID)
|
||||||
req.Header.Add("X-Actions", ackURL)
|
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")
|
req.Header.Add("X-Tags", "calendar")
|
||||||
|
|
||||||
res, err = http.DefaultClient.Do(req)
|
res, err = http.DefaultClient.Do(req)
|
||||||
|
Loading…
Reference in New Issue
Block a user