Display push notification while in the app

This commit is contained in:
Thomas Ricouard 2024-08-14 08:45:20 +02:00
parent 77bec1fae3
commit 113c4f1c84

View File

@ -154,6 +154,11 @@ extension PushNotificationsService: UNUserNotificationCenterDelegate {
handledNotification = .init(account: account.account, notification: notification)
} catch {}
}
public func userNotificationCenter(_ center: UNUserNotificationCenter,
willPresent notification: UNNotification) async -> UNNotificationPresentationOptions {
return [.banner, .sound]
}
}
extension Data {