FCM Golang

68 views
Skip to first unread message

Jagdish parihar

unread,
May 31, 2023, 10:47:52 AM5/31/23
to Firebase Google Group
Hi, 

I am trying to send the silent notification in fcm. But I am receiving the non silent notification when the app is the background.

I am using the following configuration: 

message := &messaging.MulticastMessage{
Data: data,
Tokens: tokens,
Notification: &messaging.Notification{
Title: title,
Body: body,
},
Android: &messaging.AndroidConfig{
Notification: &messaging.AndroidNotification{
Priority: messaging.PriorityHigh,
},
},
APNS: &messaging.APNSConfig{
Payload: &messaging.APNSPayload{
Aps: &messaging.Aps{
ContentAvailable: contentAvailable,
MutableContent: mutableContent,
Sound: sound,
},
},
},
}



Thanks in advance.


Reply all
Reply to author
Forward
0 new messages