BGProcessingTask
A time-consuming processing task that runs while the app is in the background.
Declaration
class BGProcessingTaskMentioned in
Overview
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 aren’t affected.