diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 5500851..fa0d6ab 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,7 +4,7 @@ - @@ -166,7 +165,8 @@ - true diff --git a/pkg/services/notifications.go b/pkg/services/notifications.go index 0394f17..43c76b0 100644 --- a/pkg/services/notifications.go +++ b/pkg/services/notifications.go @@ -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...")