We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbbcbd1 commit 5a977f2Copy full SHA for 5a977f2
2 files changed
android/service.go
@@ -51,6 +51,9 @@ func (s *Service) Queue(msg *core.Message) {
51
Data: msg.Json,
52
TimeToLive: &ttl}
53
54
+ if msg.Title != "" && msg.Text != "" {
55
+ fcmMsg.Notification = &fcm.Notification{Title: msg.Title, Body: msg.Text, Icon: msg.Icon}
56
+ }
57
if msg.Priority == core.PriorityHigh {
58
fcmMsg.Priority = "high"
59
} else {
core/model.go
@@ -21,6 +21,9 @@ type Message struct {
21
Priority int
22
Expiration int
23
24
+ Title string
25
+ Text string
26
+ Icon string
27
// GCM related fields
28
Json map[string]interface{}
29
0 commit comments