diff --git a/swift-sdk/Internal/InternalIterableAppIntegration.swift b/swift-sdk/Internal/InternalIterableAppIntegration.swift index 50a637155..fb5280b96 100644 --- a/swift-sdk/Internal/InternalIterableAppIntegration.swift +++ b/swift-sdk/Internal/InternalIterableAppIntegration.swift @@ -16,7 +16,8 @@ protocol NotificationStateProviderProtocol { struct SystemNotificationStateProvider: NotificationStateProviderProtocol { func isNotificationsEnabled(withCallback callback: @escaping (Bool) -> Void) { UNUserNotificationCenter.current().getNotificationSettings { setttings in - callback(setttings.authorizationStatus != .denied) + let notificationsDisabled = setttings.authorizationStatus == .notDetermined || setttings.authorizationStatus == .denied + callback(!notificationsDisabled) } }