Skip to content

Commit abd0fd2

Browse files
authored
Merge pull request #749 from Iterable/feature/MOB-8038-notifcations-enabled-authorization-status
[MOB-8038] Changed authorizationStatus check for notificationsEnabled Flag
2 parents 25ba35e + 2dc3dfe commit abd0fd2

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)