From b60d6930565ae625996bddab150e13eb4ebbd29b Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Sat, 21 Sep 2019 22:30:01 -0700 Subject: [PATCH] Adds sound to News and Update alerts --- AltStore/AppDelegate.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AltStore/AppDelegate.swift b/AltStore/AppDelegate.swift index 61f22f03..6b4fbd4c 100644 --- a/AltStore/AppDelegate.swift +++ b/AltStore/AppDelegate.swift @@ -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)