Skip to content

Commit 5391eb9

Browse files
author
Evan Greer
committed
Merge branch 'master' into evan/MOB-10468-prepare-6.5.8
2 parents d924a3c + 975851e commit 5391eb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

swift-sdk/Internal/InternalIterableAppIntegration.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ protocol NotificationStateProviderProtocol {
1616
struct SystemNotificationStateProvider: NotificationStateProviderProtocol {
1717
func isNotificationsEnabled(withCallback callback: @escaping (Bool) -> Void) {
1818
UNUserNotificationCenter.current().getNotificationSettings { setttings in
19-
callback(setttings.authorizationStatus != .denied)
19+
let notificationsDisabled = setttings.authorizationStatus == .notDetermined || setttings.authorizationStatus == .denied
20+
callback(!notificationsDisabled)
2021
}
2122
}
2223

0 commit comments

Comments
 (0)