Contents

BGContinuedProcessingTask

A task that starts in the foreground and can continue running in the background as needed.

Declaration

class BGContinuedProcessingTask

Mentioned in

Overview

This task works with BGContinuedProcessingTaskRequest.

The system displays the progress of this task in a Live Activity and a person can cancel it through the interface if they wish.

The system can terminate a continuous background task abruptly depending on run-time conditions, for example, under resource constraints. Your implementation needs to report progress using the ProgressReporting protocol that this task conforms to. The system prioritizes the termination of tasks that reflect minimal or no progress, when resources become constrained.

For more information on Continuous Background Task requests, see Performing long-running tasks on iOS and iPadOS.

Topics

Titling the task

See Also

Foreground tasks with background support