summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPN/AppDelegate.swift
diff options
context:
space:
mode:
Diffstat (limited to 'ios/MullvadVPN/AppDelegate.swift')
-rw-r--r--ios/MullvadVPN/AppDelegate.swift4
1 files changed, 4 insertions, 0 deletions
diff --git a/ios/MullvadVPN/AppDelegate.swift b/ios/MullvadVPN/AppDelegate.swift
index b31acdcaab..54b0d8343a 100644
--- a/ios/MullvadVPN/AppDelegate.swift
+++ b/ios/MullvadVPN/AppDelegate.swift
@@ -407,6 +407,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
}
private func setupNotifications() {
+ // We can't close banners in the screenshot tests due to how the NotificationController view
+ // is overridden, so we need this horrible workaround to make sure that no banners are visible.
+ guard launchArguments.target != .screenshots else { return }
+
NotificationManager.shared.notificationProviders = [
TunnelStatusNotificationProvider(tunnelManager: tunnelManager),
AccountExpirySystemNotificationProvider(tunnelManager: tunnelManager),