From 40b5472d1fb4f9e2c0f777bf8441efa3cfc0a7c1 Mon Sep 17 00:00:00 2001 From: CMK Date: Tue, 27 Apr 2021 18:23:13 +0800 Subject: [PATCH] feat: add sound for push notification --- NotificationService/NotificationService.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/NotificationService/NotificationService.swift b/NotificationService/NotificationService.swift index f40f84ce6..08ba12be4 100644 --- a/NotificationService/NotificationService.swift +++ b/NotificationService/NotificationService.swift @@ -58,6 +58,7 @@ class NotificationService: UNNotificationServiceExtension { bestAttemptContent.title = notification.title bestAttemptContent.subtitle = "" bestAttemptContent.body = notification.body + bestAttemptContent.sound = .default bestAttemptContent.userInfo["plaintext"] = plaintextData UserDefaults.shared.notificationBadgeCount += 1