diff --git a/notify/notification_hms.go b/notify/notification_hms.go index 1bdfc15..076dc87 100644 --- a/notify/notification_hms.go +++ b/notify/notification_hms.go @@ -123,7 +123,7 @@ func GetHuaweiNotification(req *PushNotification) (*model.MessageRequest, error) } setDefaultAndroidNotification := func() { - if msgRequest.Message.Android == nil { + if msgRequest.Message.Android.Notification == nil { msgRequest.Message.Android.Notification = model.GetDefaultAndroidNotification() } }