Skip to content

Commit 2dc3dfe

Browse files
committed
changed authorizationStatus check from authorized to not denied in case
of failure
1 parent b8964cb commit 2dc3dfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift-sdk/Internal/InternalIterableAppIntegration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ protocol NotificationStateProviderProtocol {
1616
struct SystemNotificationStateProvider: NotificationStateProviderProtocol {
1717
func isNotificationsEnabled(withCallback callback: @escaping (Bool) -> Void) {
1818
UNUserNotificationCenter.current().getNotificationSettings { setttings in
19-
callback(setttings.authorizationStatus == .authorized)
19+
callback(setttings.authorizationStatus != .denied)
2020
}
2121
}
2222

0 commit comments

Comments
 (0)