Skip to content
Commitwise
Menu

Background task (iOS)

Also called: BGTaskScheduler

A way for an iOS app to do work when it isn't on screen: extra time to finish, background transfers, or system-scheduled refresh and processing.

Definition

beginBackgroundTask buys a short window to finish a job; a background URLSession continues uploads and downloads even after the app is terminated; BGTaskScheduler runs app refresh and processing tasks when the system decides, based on usage, battery and network. Handlers must reschedule, handle expiration and complete promptly.

In practice

A news app schedules a BGAppRefreshTask so headlines are fresh shortly before the user usually opens it.

Related terms

Esc

Type to search the whole site.