mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-25 09:41:02 +00:00
Display push notification while in the app
This commit is contained in:
parent
77bec1fae3
commit
113c4f1c84
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue