mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-22 21:08:15 +01:00
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
Block a user