Skip to content
SwiftSkills

iOS push and local notifications with AI agents

Ask for notification permission before the first alert, sound or badge. Prefer a local notification when the trigger is on-device; use APNs for server-driven alerts. Keep silent pushes in the background-execution playbook. Install one UserNotifications skill and map the Push Notifications capability before editing entitlements.

Last updated:

This page is about getting a coding agent to request notification authorization, schedule local notifications and wire alert pushes without treating every push as background work. CallKit’s system calling UI and reportNewIncomingCall are not APNs or PushKit registration; see CallKit with AI agents.

What Apple requires

  1. Permission first. Asking permission to use notifications says local and remote notifications get attention with alerts, sounds or badges, and that "you must obtain permission to use them." Call requestAuthorization on the shared UNUserNotificationCenter with the interaction types you need. The first request prompts the person; later calls use the recorded answer.

  2. Local schedules. Scheduling a notification locally from your app covers creating and scheduling notifications when you want attention without a push server.

  3. Remote pushes. For server-driven alerts, register for remote notifications, enable the Push Notifications capability, and send via APNs. Silent pushes that only wake background work belong in the background execution guide.

Rules for AGENTS.md

markdown

## Notifications
- Never schedule an alert, sound or badge before authorization status is checked.
- Prefer UNCalendarNotificationTrigger / time-interval local notifications when no server is required.
- Do not add UIBackgroundModes remote-notification only to show an alert; that path is for silent content-available work.
- One entitlement or Info.plist change per step; rebuild after.

Step 1: install a UserNotifications skill

If you already use Axiom (/plugin marketplace add CharlesWiltgen/Axiom, then install axiom), invoke its push-notifications skill. Otherwise install Apple Native Skills with system integration:

npx skills add Yar177/appleNativeSkills --skill apple-system-integration

That skill covers UserNotifications triggers, actions and foreground presentation per the README.

Step 2: map the Push Notifications capability

For remote alerts, run iOS Capability Architect (npx skills add https://github.com/fillbyte/skills --skill ios-capability-architect) so the agent maps the product to the Push Notifications capability and APS environment instead of inventing entitlement keys.

Step 3: local first, then APNs

Implement permission + one local notification end-to-end on a device. Only then add registerForRemoteNotifications and a server path. Keep App Store Server Notifications (IAP JWS) out of this flow — that is StoreKit.

Step 4: verify permission and delivery

Have the agent print authorization status, deliver a local notification while the app is backgrounded, and refuse to mark remote push "done" until a device token is observed. AppDev Atlas can pull current WWDC/APNs doc citations before large payload changes.

Tools compared (5)

ToolBest forAgents (README)Install (README)LicenseStarsLast push
Axiom (CharlesWiltgen) — push-notificationsPush-notifications skill inside a large Apple OS packClaude Code, Codex/plugin marketplace add CharlesWiltgen/Axiom then install axiomMIT12535 Nov 2026
Apple Native Skills (Yar177) — apple-system-integrationUserNotifications triggers, actions, widgets/Live Activities at integration levelClaude Code, Cursor, Codex, Gemini, Windsurfnpx skills add Yar177/appleNativeSkills --skill apple-system-integrationMIT017 Jun 2026 ⚠
Background Execution (n0an)Silent push and BGTaskScheduler — not alert UXClaude Code, Cursor, Codexnpx skills add https://github.com/n0an/Background-Execution-Agent-SkillMIT138 Sep 2026 ⚠
iOS Capability Architect (fillbyte)Map Push Notifications / APS environment to Xcode evidenceClaude Code, Cursor, Codexnpx skills add https://github.com/fillbyte/skills --skill ios-capability-architectMIT14 Nov 2026
AppDev Atlas (jabbertones-cloud)Source-grounded WWDC and Apple doc research before changing push codeClaude, Codex, Cursor, VS Code, Windsurf (MCP)Add https://wwdc-mcp.smatdesigns.com/mcp as a remote MCP serverMIT16 Nov 2026

⚠ = no push for more than 4 weeks.

Which one to pick:

  • Already on Axiom: its push-notifications skill.

  • Fresh UserNotifications install: Apple Native Skills (apple-system-integration).

  • Silent background work only: Background Execution (see that guide).

  • Entitlements: iOS Capability Architect.

  • Cite current Apple push guidance: AppDev Atlas.

A prompt that keeps the agent honest

Setting up the agent: Claude Code for iOS development, Codex for iOS development. Silent push / BGTaskScheduler: iOS background execution.

Do not edit entitlements yet. Check UNUserNotificationCenter authorization status. If undetermined, draft the exact requestAuthorization options for alerts, sounds and badges and stop for approval. Then propose one local notification (trigger, content, identifier) that proves permission. Say explicitly whether this feature needs APNs or only a local schedule.

FAQ

Do I need permission before scheduling a local notification?
Yes for alerts, sounds and badges. Apple's Asking permission to use notifications says you must obtain permission because notification interactions can be disruptive, and that the first authorization request prompts the person and records the response.
When should an agent use local notifications instead of APNs?
When the trigger is known on-device (a timer, calendar date or location) and no server is required. Apple's Scheduling a notification locally from your app covers creating and scheduling those notifications from the app.
How is this different from iOS background execution?
Background execution owns BGTaskScheduler, background URLSession and silent pushes used to wake work. This page owns user-facing alerts, sounds, badges, notification permission and alert push payloads. Silent push appears here only as the boundary.
Which capability does a remote push need?
The Push Notifications capability (APS environment) in Xcode, plus a server that talks to APNs. Have the agent map that with iOS Capability Architect before inventing entitlements, and verify against Apple's current push docs.
Which notification skill should I install first?
If you already use Axiom, invoke its push-notifications skill. Otherwise install Apple Native Skills with --skill apple-system-integration for UserNotifications. Add Background Execution only when the work is silent background processing, not an alert.