We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e5de2b7 + 855d049 commit 975851eCopy full SHA for 975851e
swift-sdk/Internal/InternalIterableAppIntegration.swift
@@ -16,7 +16,8 @@ protocol NotificationStateProviderProtocol {
16
struct SystemNotificationStateProvider: NotificationStateProviderProtocol {
17
func isNotificationsEnabled(withCallback callback: @escaping (Bool) -> Void) {
18
UNUserNotificationCenter.current().getNotificationSettings { setttings in
19
- callback(setttings.authorizationStatus != .denied)
+ let notificationsDisabled = setttings.authorizationStatus == .notDetermined || setttings.authorizationStatus == .denied
20
+ callback(!notificationsDisabled)
21
}
22
23
0 commit comments