iOS Notification Actions Explained for Interview
iOS Notification Actions Explained for Interview Custom notification actions let users interact with a notification without opening the app. When the user long-presses a notification, buttons like Reply, Like, or Track Order appear inline — powered by UNNotificationAction and UNNotificationCategory. The Mental Model Before writing any code, it helps to understand the three-layer architecture: 1 2 3 UNNotificationAction → a single button UNNotificationCategory → a named group of those buttons APNs payload "category" → tells iOS which group to render The category string in your APNs payload is the linking pin between what your backend sends and what iOS renders. Get that string wrong and no buttons appear — with no error thrown. ...