·background-processing
</>

background-processing

使用 BGTaskScheduler 在 iOS 上安排和执行后台工作。在注册用于短后台提取的 BGAppRefreshTask、用于长时间运行维护的 BGProcessingTask、用于在后台继续的前台启动工作、后台 URLSession 下载或后台推送通知的 BGContinuedProcessingTask (iOS 26+) 时使用。涵盖 Info.plist 配置、过期处理、任务完成以及通过模拟启动进行调试。

54安装·26热度·@dpearson2699

安装

$npx skills add https://github.com/dpearson2699/swift-ios-skills --skill background-processing

如何安装 background-processing

通过命令行快速安装 background-processing AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/dpearson2699/swift-ios-skills --skill background-processing
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:dpearson2699/swift-ios-skills。

SKILL.md

查看原文

Register, schedule, and execute background work on iOS using the BackgroundTasks framework, background URLSession, and background push notifications.

Every task identifier must be declared in Info.plist under BGTaskSchedulerPermittedIdentifiers, or submit(:) throws BGTaskScheduler.Error.Code.notPermitted.

In Xcode: target > Signing & Capabilities > Background Modes > enable "Background fetch" and "Background processing".

使用 BGTaskScheduler 在 iOS 上安排和执行后台工作。在注册用于短后台提取的 BGAppRefreshTask、用于长时间运行维护的 BGProcessingTask、用于在后台继续的前台启动工作、后台 URLSession 下载或后台推送通知的 BGContinuedProcessingTask (iOS 26+) 时使用。涵盖 Info.plist 配置、过期处理、任务完成以及通过模拟启动进行调试。 来源:dpearson2699/swift-ios-skills。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/dpearson2699/swift-ios-skills --skill background-processing
分类
</>开发工具
认证
收录时间
2026-03-09
更新时间
2026-03-11

Browse more skills from dpearson2699/swift-ios-skills

快速解答

什么是 background-processing?

使用 BGTaskScheduler 在 iOS 上安排和执行后台工作。在注册用于短后台提取的 BGAppRefreshTask、用于长时间运行维护的 BGProcessingTask、用于在后台继续的前台启动工作、后台 URLSession 下载或后台推送通知的 BGContinuedProcessingTask (iOS 26+) 时使用。涵盖 Info.plist 配置、过期处理、任务完成以及通过模拟启动进行调试。 来源:dpearson2699/swift-ios-skills。

如何安装 background-processing?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/dpearson2699/swift-ios-skills --skill background-processing 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/dpearson2699/swift-ios-skills