🐛 Fix APNs pushes no sound

This commit is contained in:
2024-06-08 17:55:51 +08:00
parent bcab6dfc51
commit 3010d4f2a4
2 changed files with 5 additions and 1 deletions

View File

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