title: Status Services Background Task description: The status item that reports the device's background task details. payload: statusitemtype: services.background-task supportedOS: iOS: introduced: n/a macOS: introduced: '14.0' allowed-enrollments: - supervised - local allowed-scopes: - system tvOS: introduced: n/a visionOS: introduced: n/a watchOS: introduced: n/a payloadkeys: - key: services.background-task title: Status item value. type: presence: required content: The background task. subkeytype: Background Task subkeys: - key: status_value title: Status value type: content: The status item that reports a background task. subkeys: - key: identifier title: Identifier type: presence: required content: The background task UUID which the system uses as the primary key. - key: _removed title: Indicates removal of a background task. type: presence: optional default: false content: If `true`, the system removed the background task and the status item object only contains this key and the `identifier` key. - key: code-signature title: Code signature type: presence: optional content: For types other than `agent` or `daemon`, this is the code signature designated requirement of the item, if available. - key: uid title: Numeric user identifier type: presence: required content: The numeric user identifier of the owner of the background task. - key: path title: Path type: presence: required content: For an `agent` or `daemon`, the path to the `launchd` `plist` file. For other types, the path to the app or the document. - key: state title: Background task state type: presence: required rangelist: - not-registered - enabled - requires-approval - not-found content: The `SMAppService.Status` enumeration. - key: type title: Background task type type: presence: required rangelist: - daemon - agent - login-item - app - user-item content: The daemon, agent, or SFL login item type. - key: launchd title: Launchd background task type: presence: optional content: Details about a `launchd`-based background task, which is only present when the type is `daemon` or `agent`. subkeys: - key: label title: Label type: presence: required content: The label of the `launchd`-based background task. - key: program title: Program type: presence: required content: The program that the `launchd` `plist` file specifies. - key: program-arguments title: Program arguments type: presence: optional content: The program arguments that the `launchd` `plist` file specifies. subkeys: - key: program-arguments-item title: Program argument type: - key: checksum title: The hash value of the launchd plist. type: presence: required content: The hash value of the `launchd` `plist` file. - key: device-management title: Device management supportedOS: macOS: introduced: '15.0' type: presence: optional content: A dictionary that indicates a `ServicesBackgroundTasks` configuration created this background task. The dictionary contains properties that identify the configuration and the declaration asset that provided the launchd plist for the task. subkeys: - key: configuration-identifier title: Configuration identifier type: presence: required content: The identifier of the `ServicesBackgroundTasks` configuration that created this task. - key: asset-identifier title: Asset identifier type: presence: required content: The `Identifier` of the declaration asset that provided the launchd plist for this task. - key: asset-server-token title: Asset server token type: presence: required content: The `ServerToken` of the declaration asset that provided the launchd plist for this task. examples: - title: Status item example files: - tab: New or updated task description: Reports a new or updated background task. file: data/docc-examples/remotemanagementmodel/status/services.background-task/example1.json - tab: Removed task description: Reports a removed background task. file: data/docc-examples/remotemanagementmodel/status/services.background-task/example2.json