feat: add sound for push notification

This commit is contained in:
CMK 2021-04-27 18:23:13 +08:00
parent 5d52fc4578
commit 40b5472d1f
1 changed files with 1 additions and 0 deletions

View File

@ -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