UNUserNotificationCenter
UNUserNotificationCenter is the central object in the UserNotifications framework responsible for managing notifications for an app. It coordinates the delivery of local and remote notifications and provides an interface to request permission, schedule notifications, and respond to user interactions. The center is accessed via a shared instance and is available across Apple platforms that support UserNotifications.
Access and authorization: An app obtains the shared center with a call to current(). To display alerts,
Scheduling and delivering notifications: Local notifications are created with a content object (UNMutableNotificationContent) and a trigger
Managing delivered and pending notifications: The center provides methods to query and modify notifications, including getDeliveredNotifications
Delegate and user interaction: Implementing UNUserNotificationCenterDelegate allows the app to respond when notifications arrive while the
Categories and actions: Notifications can define categories (UNNotificationCategory) with custom actions (UNNotificationAction), enabling quick user responses
History and scope: Introduced with the UserNotifications framework in iOS 10, UNUserNotificationCenter remains the central API