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. ...

April 5, 2026 · 4 min · Vasant Patil

Push Notifications in iOS: A Complete Guide

Push Notifications in iOS: A Complete Guide Push notifications are one of those iOS features that look straightforward from the outside — a banner appears, the user taps it, something happens. But once you start building a production system around them, you realise there are a surprising number of moving parts: APNs environments, device token lifecycle, background execution budgets, notification categories, the delegate method that handles three different app states. Get any one of these wrong and notifications silently stop working with no error thrown anywhere. ...

April 5, 2026 · 18 min · Vasant Patil