mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-24 12:47: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)
|
||||
res, err := client.Push(notification)
|
||||
if err != nil {
|
||||
logger.Printf("Error sending push: %s", err)
|
||||
logger.Printf("Error sending push to %s: %s", device, err)
|
||||
} else {
|
||||
logger.Printf("Push response: %v %v %v\n", res.StatusCode, res.ApnsID, res.Reason)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue