mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-24 20:57:43 +00:00
specify device token
This commit is contained in:
parent
931bef0aeb
commit
f83ce540b1
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ func accountWorker(id int, rc *reddit.Client, db *sql.DB, logger *log.Logger, qu
|
||||||
notification.Payload = payload.NewPayload().AlertTitle(msg.Subject).AlertBody(msg.Body)
|
notification.Payload = payload.NewPayload().AlertTitle(msg.Subject).AlertBody(msg.Body)
|
||||||
res, err := client.Push(notification)
|
res, err := client.Push(notification)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Printf("Error sending push: %s", err)
|
logger.Printf("Error sending push to %s: %s", device, err)
|
||||||
} else {
|
} else {
|
||||||
logger.Printf("Push response: %v %v %v\n", res.StatusCode, res.ApnsID, res.Reason)
|
logger.Printf("Push response: %v %v %v\n", res.StatusCode, res.ApnsID, res.Reason)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue