
Background Processing
Background work on iOS through BGTaskScheduler, covering refresh, processing, and continued-processing tasks with expiration handling.
- skills.sh installs
- 4.1K
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
What it does
- Covers Info.plist permitted identifiers, UIBackgroundModes, and registration in UIKit and SwiftUI app launch paths
- Includes patterns for BGAppRefreshTask, BGProcessingTask, and BGContinuedProcessingTask (iOS 26+), plus background URLSession and push triggers
- Enforces expirationHandler cancellation and setTaskCompleted calls, since the system can revoke time at any moment
- Designed for iOS developers scheduling short fetches, long maintenance jobs, or foreground-started work that must continue in background
Install
$ npx -y skills add dpearson2699/swift-ios-skills --skill background-processing -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Background Processing
Register, schedule, and execute background work on iOS using the BackgroundTasks framework, background URLSession, and background push notifications.
Contents
- Info.plist Configuration
- BGTaskScheduler Registration
- BGAppRefreshTask Patterns
- BGProcessingTask Patterns
- BGContinuedProcessingTask (iOS 26+)
- Background URLSession Downloads
- Background Push Triggers
- Common Mistakes
- Review Checklist
- References
Info.plist Configuration
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>
Also enable the required UIBackgroundModes:
Details
- Repository
- github.com/dpearson2699/swift-ios-skills
- Category
- Mobile Apps
- First seen
- Apr 16, 2026
More from dpearson2699/swift-ios-skills
All 94- Healthkit4.1K
- Vision Framework4.1K
- Coreml4K
- Core Bluetooth4K
- Core Motion3.9K
- Natural Language3.9K
- Speech Recognition3.9K
- Device Integrity3.9K
- Contacts Framework3.8K
- Alarmkit3.8K
- Core Nfc3.8K
- Swift Codable3.8K
- App Clips3.8K
- Tipkit3.8K
- Permissionkit3.8K
- Energykit3.8K
- Shareplay Activities3.7K
- Weatherkit3.7K
- Activitykit3.6K
- Cloudkit3.5K
- Photokit3.5K
- Realitykit3.5K
- Mapkit3.5K
- Swiftui Webkit3.5K
Similar to Background Processing
More Mobile Apps
healthkitdpearson2699/swift-ios-skills4.1K installsRead, write, and query Apple Health data using HealthKit. Covers HKHealthStore authorization, sample queries, statistics queries, statistics collection queries
vision-frameworkdpearson2699/swift-ios-skills4.1K installsImplement computer vision features including text recognition (OCR), face detection, barcode scanning, image segmentation, object tracking, and document scannin
coremldpearson2699/swift-ios-skills4K installsIntegrate Core ML models in iOS apps for on-device machine learning inference. Covers model loading (.mlmodel, .mlpackage, .mlmodelc), predictions with auto-gen
core-bluetoothdpearson2699/swift-ios-skills4K installsBuild direct Bluetooth Low Energy workflows with Core Bluetooth. Use when implementing BLE central or peripheral GATT communication, scanning or connecting with
core-motiondpearson2699/swift-ios-skills3.9K installsAccess Core Motion accelerometer, gyroscope, magnetometer, device-motion, pedometer, activity-recognition, altitude, headphone motion, batched high-frequency wo
edge-to-edgeandroid/skills3.9K installsUse this skill to migrate your Jetpack Compose app to add adaptive edge-to-edge support and troubleshoot common issues. Use this skill to fix UI components (lik