From d622f1df3dd62a5f563e3ce8beb7b284ef5272ce Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Wed, 31 Aug 2022 15:11:09 +0800 Subject: [PATCH] fcm --- internal/push/fcm/push.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/push/fcm/push.go b/internal/push/fcm/push.go index 48f6a9947..cedccbebe 100644 --- a/internal/push/fcm/push.go +++ b/internal/push/fcm/push.go @@ -68,6 +68,7 @@ func (f *Fcm) Push(accounts []string, alert, detailContent, operationID string, Msg.Notification = &messaging.Notification{} Msg.Notification.Body = detailContent Msg.Notification.Title = alert + Msg.APNS = &messaging.APNSConfig{Payload: &messaging.APNSPayload{Aps: &messaging.Aps{}}} if opts.IOSBadgeCount { i := 1 Msg.APNS.Payload.Aps.Badge = &i