pull/351/head
wangchuxiao 2 years ago
parent caea072f7d
commit d622f1df3d

@ -68,6 +68,7 @@ func (f *Fcm) Push(accounts []string, alert, detailContent, operationID string,
Msg.Notification = &messaging.Notification{} Msg.Notification = &messaging.Notification{}
Msg.Notification.Body = detailContent Msg.Notification.Body = detailContent
Msg.Notification.Title = alert Msg.Notification.Title = alert
Msg.APNS = &messaging.APNSConfig{Payload: &messaging.APNSPayload{Aps: &messaging.Aps{}}}
if opts.IOSBadgeCount { if opts.IOSBadgeCount {
i := 1 i := 1
Msg.APNS.Payload.Aps.Badge = &i Msg.APNS.Payload.Aps.Badge = &i

Loading…
Cancel
Save