mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
fcm
This commit is contained in:
parent
caea072f7d
commit
d622f1df3d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user