Replace `ping` notification payload with `You have a new message`

This commit is contained in:
Pedro Pombeiro 2018-02-26 18:17:42 +01:00
parent 0332465952
commit eca5e04cc4
No known key found for this signature in database
GPG Key ID: A65DEB11E4BBC647
1 changed files with 2 additions and 2 deletions

View File

@ -31,10 +31,10 @@ func (n *Notification) Send(body string, payload fcm.NotificationPayload, tokens
}
if payload.Title == "" {
payload.Title = "Status - new message"
payload.Title = "Status"
}
if payload.Body == "" {
payload.Body = "ping"
payload.Body = "You have a new message"
}
fmt.Println(payload.Title, payload.Body)