README.md
1# Background Task Management
2
3### Introduction
4
5This sample shows how a download task can be performed at the background even if the app exits. The display effect is as follows:
6
7
8
9### Concepts
10
11If a service needs to be continued when the application or service module is running in the background (not visible to users), the application or service module can request a transient task to delay the suspension or a continuous task to prevent the suspension.
12
13### Required Permissions
14
15ohos.permission.KEEP_BACKGROUND_RUNNING
16
17### Usage
18
191. Touch the **Download** button and exit the app. The download task is pushed to the background for execution. When a task starts to be executed in the background, a notification and the download progress will be displayed.
20
21### Constraints
22
23- This sample can only be run on standard-system devices.
24- You need to refresh the notification window to view the download progress. In addition, the download ends when the download progress reaches 20% in this sample.
25- This feature is supported form API version 9.
26
27- This sample requires DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022) to compile and run.