Value of type 'UNNotificationSettings' has no member 'timeSensitiveSetting' - UrbanAirship pod prevent from build to succeed after pod update

416 views Asked by At

Using Xcode 13. after updating my pods i cannot compile my project because the UrbanAirship pod show some error:

Value of type 'UNNotificationSettings' has no member 'timeSensitiveSetting'

and

Value of type 'UNNotificationSettings' has no member 'scheduledDeliverySetting'

for lines:

#if !os(tvOS) && !targetEnvironment(macCatalyst)

if #available(iOS 15.0, *) {
    if notificationSettings.timeSensitiveSetting == .enabled {
         authorizedSettings.insert(.timeSensitive)
    }
                
    if notificationSettings.scheduledDeliverySetting == .enabled {
         authorizedSettings.insert(.scheduledDelivery)
    }
}

#endif

enter image description here

0

There are 0 answers