UserNotifications iOS 14.5 to 15.0 API Differences

UNError.h
Added UNErrorCodeContentProvidingObjectNotAllowed
Added UNErrorCodeContentProvidingInvalid
UNNotificationAction.h
Added UNNotificationAction.icon
Added +[UNNotificationAction actionWithIdentifier:title:options:icon:]
Added +[UNTextInputNotificationAction actionWithIdentifier:title:options:icon:textInputButtonTitle:textInputPlaceholder:]
UNNotificationActionIcon.h
Added UNNotificationActionIcon
Added +[UNNotificationActionIcon iconWithTemplateImageName:]
Added +[UNNotificationActionIcon iconWithSystemImageName:]
UNNotificationCategory.h
Modified UNNotificationCategoryOptionAllowAnnouncement
AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedAnnouncement option is ignored

UNNotificationContent.h
Added UNNotificationContentProviding
Added UNNotificationInterruptionLevel
Added UNNotificationInterruptionLevelPassive
Added UNNotificationInterruptionLevelActive
Added UNNotificationInterruptionLevelTimeSensitive
Added UNNotificationInterruptionLevelCritical
Added UNNotificationContent.interruptionLevel
Added UNNotificationContent.relevanceScore
Added -[UNNotificationContent contentByUpdatingWithProvider:error:]
Added UNMutableNotificationContent.interruptionLevel
Added UNMutableNotificationContent.relevanceScore
Modified UNNotificationContent.summaryArgument
AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedsummaryArgument is ignored

Modified UNNotificationContent.summaryArgumentCount
AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedsummaryArgumentCount is ignored

Modified UNMutableNotificationContent.attachments
Declaration
From@property (nonatomic, copy) NSArray<UNNotificationAttachment *> *attachments
To@property (nonatomic, readwrite, copy) NSArray<UNNotificationAttachment *> *attachments

Modified UNMutableNotificationContent.badge
Declaration
From@property (nonatomic, copy) NSNumber *badge
To@property (nonatomic, readwrite, copy) NSNumber *badge

Modified UNMutableNotificationContent.body
Declaration
From@property (nonatomic, copy) NSString *body
To@property (nonatomic, readwrite, copy) NSString *body

Modified UNMutableNotificationContent.categoryIdentifier
Declaration
From@property (nonatomic, copy) NSString *categoryIdentifier
To@property (nonatomic, readwrite, copy) NSString *categoryIdentifier

Modified UNMutableNotificationContent.launchImageName
Declaration
From@property (nonatomic, copy) NSString *launchImageName
To@property (nonatomic, readwrite, copy) NSString *launchImageName

Modified UNMutableNotificationContent.sound
Declaration
From@property (nonatomic, copy) UNNotificationSound *sound
To@property (nonatomic, readwrite, copy) UNNotificationSound *sound

Modified UNMutableNotificationContent.subtitle
Declaration
From@property (nonatomic, copy) NSString *subtitle
To@property (nonatomic, readwrite, copy) NSString *subtitle

Modified UNMutableNotificationContent.threadIdentifier
Declaration
From@property (nonatomic, copy) NSString *threadIdentifier
To@property (nonatomic, readwrite, copy) NSString *threadIdentifier

Modified UNMutableNotificationContent.title
Declaration
From@property (nonatomic, copy) NSString *title
To@property (nonatomic, readwrite, copy) NSString *title

Modified UNMutableNotificationContent.userInfo
Declaration
From@property (nonatomic, copy) NSDictionary *userInfo
To@property (nonatomic, readwrite, copy) NSDictionary *userInfo

Modified UNMutableNotificationContent.summaryArgument
DeclarationAvailabilityDeprecation Message
From@property (nonatomic, copy) NSString *summaryArgumentAvailablenone
To@property (nonatomic, readwrite, copy) NSString *summaryArgumentDeprecatedsummaryArgument is ignored

Modified UNMutableNotificationContent.summaryArgumentCount
DeclarationAvailabilityDeprecation Message
From@property (nonatomic, assign) NSUInteger summaryArgumentCountAvailablenone
To@property (nonatomic, readwrite, assign) NSUInteger summaryArgumentCountDeprecatedsummaryArgumentCount is ignored

Modified UNMutableNotificationContent.targetContentIdentifier
Declaration
From@property (nonatomic, copy) NSString *targetContentIdentifier
To@property (nonatomic, readwrite, copy) NSString *targetContentIdentifier

UNNotificationSettings.h
Added UNNotificationSettings.timeSensitiveSetting
Added UNNotificationSettings.scheduledDeliverySetting
Added UNNotificationSettings.directMessagesSetting
UNUserNotificationCenter.h
Added UNAuthorizationOptionTimeSensitive
Modified UNAuthorizationOptionAnnouncement
AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedAnnouncement authorization is always included