From b9b5530979fe1849560d675a770ba6832406b2a4 Mon Sep 17 00:00:00 2001 From: "ester.zhou" Date: Thu, 17 Aug 2023 18:12:00 +0800 Subject: [PATCH] Update docs (22155) Signed-off-by: ester.zhou --- en/application-dev/reference/apis/js-apis-request.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/en/application-dev/reference/apis/js-apis-request.md b/en/application-dev/reference/apis/js-apis-request.md index f2eb1a5fff..9acb13cab1 100644 --- a/en/application-dev/reference/apis/js-apis-request.md +++ b/en/application-dev/reference/apis/js-apis-request.md @@ -286,6 +286,10 @@ on(type: 'progress', callback:(uploadedSize: number, totalSize: number) => vo Subscribes to upload progress events. This API uses a callback to return the result synchronously. +> **NOTE** +> +> To maintain a balance between power consumption and performance, this API cannot be called when the application is running in the background. + **Required permissions**: ohos.permission.INTERNET **System capability**: SystemCapability.MiscServices.Upload @@ -851,6 +855,10 @@ on(type: 'progress', callback:(receivedSize: number, totalSize: number) => vo Subscribes to download progress events. This API uses a callback to return the result synchronously. +> **NOTE** +> +> To maintain a balance between power consumption and performance, this API cannot be called when the application is running in the background. + **Required permissions**: ohos.permission.INTERNET **System capability**: SystemCapability.MiscServices.Download -- GitLab