Schedules and executes iOS background work with BGTaskScheduler and background URLSession. Covers app refresh, processing, continued-processing tasks, expiration handling, background downloads, pushes, registration, Info.plist config, and launch simulation.
Ships in all-ios-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Register, schedule, and execute background tasks on iOS using BackgroundTasks (BGTaskScheduler), background URLSession, and background push notifications. Targets Swift 6.4 / iOS 26+.
Every task identifier must be declared in Info.plist under BGTaskSchedulerPermittedIdentifiers, or submit(_:) throws BGTaskScheduler.Error.Code.notPermitted.
<key>BGTaskSchedulerPermittedIdentifiers</key>
<array>
<string>com.example.app.refresh</string>
<string>com.example.app.db-cleanup</string>
<string>com.example.app.export.*</string>
</array>
<key>UIBackgroundModes</key>
<array>
<string>fetch</string> <!-- Required for BGAppRefreshTask -->
<string>processing</string> <!-- Required for BGProcessingTask -->
<string>remote-notification</string> <!-- Required for silent push -->
</array>
In Xcode: Target > Signing & Capabilities > Background Modes > enable Background fetch, Background processing, or Remote notifications.
| Task Type | Max Duration | Trigger | Requires Power/Network | Use Case |
|---|---|---|---|---|
BGAppRefreshTask | ~30 seconds | System opportunistic | Configurable hint | Light feed/state updates |
BGProcessingTask | Several minutes | Device idle | External power / network optional | Database cleanup, maintenance, ML indexing |
BGContinuedProcessingTask | User bounded | Foreground user action | Live Activity progress | Exporting large media, offline bundle generation |
URLSession.background | Managed out-of-process | Network completion | Cellular/WiFi policy | Large file downloads and uploads |
| Silent Remote Push | ~30 seconds | APNs trigger (content-available: 1) | Network required | Server-driven data invalidation hint |
application(_:didFinishLaunchingWithOptions:) (UIKit) or App.init() (SwiftUI). Submitting an unregistered identifier throws runtime exceptions.expirationHandler: The system can revoke background execution time at any moment. The expiration handler must cancel active tasks and call setTaskCompleted(success: false).setTaskCompleted(success:) exactly once: Failing to call completion causes the system to penalize future execution allocations.earliestBeginDate as a lower bound: iOS determines actual launch time based on battery status, power state, and user interaction patterns._simulateLaunchForTaskWithIdentifier:), read Debugging Background Tasks.handleEventsForBackgroundURLSession, read Background URLSession Extended Patterns.ProgressReporting, read BGContinuedProcessingTask Patterns.com.apple.developer.background-tasks.continued-processing.inference.UIScene.extendStateRestoration and UIScene.completeStateRestoration extend state restoration across background-to-foreground transitions.NSBundleResourceRequest are deprecated; use Background Assets. Background Assets adds localized asset packs, delivered by the user's preferred languages.Sources: https://sosumi.ai/documentation/ios-ipados-release-notes/ios-ipados-27-release-notes
BGTaskSchedulerPermittedIdentifiers (throws .notPermitted).task.setTaskCompleted(success:) on all execution and failure paths.task.expirationHandler, leading to watchdog termination when background time expires.URLSession (requires delegate).BGTaskSchedulerPermittedIdentifiersUIBackgroundModes enabled (fetch, processing, remote-notification)expirationHandler cancels active tasks and reports failuresetTaskCompleted(success:) called exactly once on all code pathsURLSession uses delegate and preserves background completion handlerurlSession(_:downloadTask:didFinishDownloadingTo:) before returncontent-available: 1, apns-push-type: background, and priority 5What SKILL.md sets; muted values are Claude Code's defaults
/all-ios-skills:background-processingfrom all-ios-skills
npx claudepluginhub thienqo/ios-skills --plugin all-ios-skills95 skills in this plugin
/accessorysetupkitDiscover and configure Bluetooth and Wi-Fi accessories using AccessorySetupKit. Use when presenting a privacy-preserving accessory picker, defining discovery descriptors for BLE or Wi-Fi devices, handling accessory session events, migrating from CoreBluetooth permission-based scanning, or setting up accessories without requiring broad Bluetooth permissions./activitykitBuild or review Live Activities and Dynamic Island experiences with ActivityKit, including lifecycle, layouts, push updates, and scheduled delivery. Use for time-sensitive Lock Screen or Dynamic Island state; route ordinary widgets to widgetkit./adattributionkitMeasure ad effectiveness with privacy-preserving attribution using AdAttributionKit. Use when registering ad impressions, handling attribution postbacks, updating conversion values, implementing re-engagement attribution, configuring publisher or advertiser apps, or replacing SKAdNetwork with AdAttributionKit for ad measurement./alarmkitBuilds AlarmKit alarms and countdowns with system Lock Screen, Dynamic Island, StandBy, and Apple Watch presentation. Use for authorization, AlarmManager scheduling, stop/secondary actions, countdown extension handoff, state observation, or Live Activity-backed alarm experiences./app-clipsBuilds App Clips and their invocation, routing, App Store Connect experiences, size/capability limits, promotion, data handoff, notifications, and full-app migration. Use for App Clip Codes, URLs, NFC/QR, Safari/Maps/Messages invocation, NSUserActivity, or App Group/keychain transfer./app-intentsImplement App Intents for Siri, Shortcuts, Spotlight, widgets, Control Center, and Apple Intelligence on iOS. Covers AppIntent actions, AppEntity and EntityQuery models, AppShortcutsProvider phrases, IndexedEntity Spotlight indexing, WidgetConfigurationIntent, SnippetIntent, and assistant schemas. Use when exposing app actions or entities to system surfaces.Other plugins' skills for the same job