Replace `ping` notification payload with `You have a new message`
This commit is contained in:
parent
0332465952
commit
eca5e04cc4
|
@ -31,10 +31,10 @@ func (n *Notification) Send(body string, payload fcm.NotificationPayload, tokens
|
||||||
}
|
}
|
||||||
|
|
||||||
if payload.Title == "" {
|
if payload.Title == "" {
|
||||||
payload.Title = "Status - new message"
|
payload.Title = "Status"
|
||||||
}
|
}
|
||||||
if payload.Body == "" {
|
if payload.Body == "" {
|
||||||
payload.Body = "ping"
|
payload.Body = "You have a new message"
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println(payload.Title, payload.Body)
|
fmt.Println(payload.Title, payload.Body)
|
||||||
|
|
Loading…
Reference in New Issue