Adds sound to News and Update alerts

This commit is contained in:
Riley Testut
2019-09-21 22:30:01 -07:00
parent 3faed8cf5c
commit b60d693056

View File

@@ -275,6 +275,7 @@ private extension AppDelegate
let content = UNMutableNotificationContent()
content.title = NSLocalizedString("New Update Available", comment: "")
content.body = String(format: NSLocalizedString("%@ %@ is now available for download.", comment: ""), update.name, storeApp.version)
content.sound = .default
let request = UNNotificationRequest(identifier: UUID().uuidString, content: content, trigger: nil)
UNUserNotificationCenter.current().add(request)
@@ -297,6 +298,7 @@ private extension AppDelegate
}
content.body = newsItem.title
content.sound = .default
let request = UNNotificationRequest(identifier: UUID().uuidString, content: content, trigger: nil)
UNUserNotificationCenter.current().add(request)