damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 35ee2f5744152fbe66ce162d29d1203569cbf1a8
parent 42e6281e9b72a31d24fc973c96542df79e2e1a1f
Author: Terry Yiu <963907+tyiu@users.noreply.github.com>
Date:   Thu, 30 Mar 2023 13:59:05 -0400

Replace deprecated UNNotificationPresentationOptions.alert with .banner and .list

Closes: #844

Diffstat:
Mdamus/damusApp.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/damus/damusApp.swift b/damus/damusApp.swift @@ -53,7 +53,7 @@ class AppDelegate: NSObject, UIApplicationDelegate, UNUserNotificationCenterDele // Handle the notification in the foreground state func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) { // Display the notification in the foreground - completionHandler([.alert, .sound, .badge]) + completionHandler([.banner, .list, .sound, .badge]) } }