diff --git a/Sources/AppcuesKit/Presentation/Debugger/PushVerifier.swift b/Sources/AppcuesKit/Presentation/Debugger/PushVerifier.swift index 5b2958310..06e77f47f 100644 --- a/Sources/AppcuesKit/Presentation/Debugger/PushVerifier.swift +++ b/Sources/AppcuesKit/Presentation/Debugger/PushVerifier.swift @@ -46,7 +46,7 @@ internal class PushVerifier { case .notAuthorized: return "Error 2: Notification permissions not requested" case .permissionDenied: - return "Error 3: Notification permissions denied" + return "Error 3: Notification permissions denied. Tap to open system settings" case .unexpectedStatus: return "Error 4: Unexpected notification permission status" case .noNotificationDelegate: @@ -117,6 +117,12 @@ internal class PushVerifier { return } + if errors.contains(.permissionDenied), let settingsURL = URL(string: "app-settings://") { + errors = [] + UIApplication.shared.open(settingsURL) + return + } + errors = [] verifyDeviceConfiguration()