I am trying to send the silent notification in fcm. But I am receiving the non silent notification when the app is the background.
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.