Display push notification while in the app
This commit is contained in:
parent
77bec1fae3
commit
113c4f1c84
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue