A time-consuming processing task that runs while the app is in the background.


@interface BGProcessingTask : BGTask


Use processing tasks for long data updates, processing data, and app maintenance. Although processing tasks can run for minutes, the system can interrupt the process. Add an expiration handler by setting expirationHandler for any required cleanup.

Executing processing tasks requires setting the processing UIBackgroundModes capability. For information on setting this capability, see BGTaskScheduler.

Processing tasks run only when the device is idle. The system terminates any background processing tasks running when the user starts using the device. Background refresh tasks are not affected.


Inherits From

See Also

Task Management


An object representing a short task typically used to refresh content that’s run while the app is in the background.


An abstract class representing a task that’s run while the app is in the background.