Contents

Background Tasks

Support background processing in your app by wrapping your app’s most critical work in framework-provided tasks.

Overview

Use this framework to keep your app content up to date and run tasks requiring minutes to complete even if your app is in the background. Longer tasks can leverage external power, network connectivity, and the GPU on supported devices.

To launch your app in the background and perform necessary work, register launch handlers for framework-provided tasks and schedule the tasks as needed.

Your app can also use a framework-provided task to execute critical jobs in the foreground and complete them in the background if a person backgrounds your app before the job completes.

Topics

Essentials

Background tasks

Foreground tasks with background support

Task requests

Development and testing