🐛 Bug fixes on notification badges for APNs

This commit is contained in:
2024-06-08 13:03:36 +08:00
parent b76e7d41cf
commit daaac3667c
2 changed files with 3 additions and 5 deletions

View File

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