mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2024-12-22 22:28:35 +01:00
feat: add sound for push notification
This commit is contained in:
parent
5d52fc4578
commit
40b5472d1f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user