🐛 Fix APNs pushes no sound (again)

This commit is contained in:
2024-06-08 18:18:28 +08:00
parent 3010d4f2a4
commit 5b06b2dccb
2 changed files with 5 additions and 4 deletions

View File

@ -113,7 +113,8 @@ func PushNotification(notification models.Notification) error {
NewPayload().
AlertTitle(notification.Subject).
AlertBody(notification.Content).
SoundName("default").
Sound("default").
Category(notification.Type).
MarshalJSON()
if err != nil {
log.Warn().Err(err).Msg("An error occurred when preparing to notify subscriber via APNs...")