diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2023-04-27 14:24:19 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2023-04-28 16:45:21 +0200 |
| commit | 7ab93f36b3da06f7ffa84d20dd656e1bef7943cb (patch) | |
| tree | 4c63198abe2ce9971a5c095f8ecb08d35f8566b7 | |
| parent | 2cc56a2f08f1697444f5ac6012092cca10ebc7ce (diff) | |
| download | mullvadvpn-7ab93f36b3da06f7ffa84d20dd656e1bef7943cb.tar.xz mullvadvpn-7ab93f36b3da06f7ffa84d20dd656e1bef7943cb.zip | |
Enable banner and sound for push notifications
| -rw-r--r-- | ios/MullvadVPN/AppDelegate.swift | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ios/MullvadVPN/AppDelegate.swift b/ios/MullvadVPN/AppDelegate.swift index 29db4311c8..640d7fc86c 100644 --- a/ios/MullvadVPN/AppDelegate.swift +++ b/ios/MullvadVPN/AppDelegate.swift @@ -506,13 +506,12 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD func userNotificationCenter( _ center: UNUserNotificationCenter, willPresent notification: UNNotification, - withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) - -> Void + withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void ) { if #available(iOS 14.0, *) { - completionHandler([.list]) + completionHandler([.list, .banner, .sound]) } else { - completionHandler([]) + completionHandler([.sound, .alert]) } } } |
