From a443939470660298370e48c0432bc286d4275719 Mon Sep 17 00:00:00 2001 From: lloyd <754415+llince@user.noreply.gitee.com> Date: Sat, 21 Sep 2024 15:31:39 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8D=A1=E7=89=87=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E3=80=91=E6=9B=B4=E6=96=B0=E6=9D=83=E9=99=90=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=8E=9F=E5=9B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/module.json5 | 1 + entry/src/main/resources/base/element/string.json | 4 ++++ entry/src/main/resources/en_US/element/string.json | 4 ++++ entry/src/main/resources/zh_CN/element/string.json | 4 ++++ 4 files changed, 13 insertions(+) diff --git a/entry/src/main/module.json5 b/entry/src/main/module.json5 index 00660b7..03128ab 100644 --- a/entry/src/main/module.json5 +++ b/entry/src/main/module.json5 @@ -62,6 +62,7 @@ "requestPermissions": [ { "name": "ohos.permission.KEEP_BACKGROUND_RUNNING", + "reason": "$string:reason_keep_background_running", "usedScene": { "abilities": [ "EntryAbility" diff --git a/entry/src/main/resources/base/element/string.json b/entry/src/main/resources/base/element/string.json index 03a2021..a904f13 100644 --- a/entry/src/main/resources/base/element/string.json +++ b/entry/src/main/resources/base/element/string.json @@ -143,6 +143,10 @@ { "name": "content12", "value": "The ArkTS card framework provides the updateForm and requestForm interfaces to actively trigger the page refresh of the card, and confirms the card data that needs to be refreshed through LocalStoreProp." + }, + { + "name": "reason_keep_background_running", + "value": "Allow applications to run in the background in card update scenarios." } ] } \ No newline at end of file diff --git a/entry/src/main/resources/en_US/element/string.json b/entry/src/main/resources/en_US/element/string.json index b42f309..edb3bae 100644 --- a/entry/src/main/resources/en_US/element/string.json +++ b/entry/src/main/resources/en_US/element/string.json @@ -143,6 +143,10 @@ { "name": "content12", "value": "The ArkTS card framework provides the updateForm and requestForm interfaces to actively trigger the page refresh of the card, and confirms the card data that needs to be refreshed through LocalStoreProp." + }, + { + "name": "reason_keep_background_running", + "value": "Allow applications to run in the background in card update scenarios." } ] } \ No newline at end of file diff --git a/entry/src/main/resources/zh_CN/element/string.json b/entry/src/main/resources/zh_CN/element/string.json index 39829c8..c0cd6bb 100644 --- a/entry/src/main/resources/zh_CN/element/string.json +++ b/entry/src/main/resources/zh_CN/element/string.json @@ -143,6 +143,10 @@ { "name": "content12", "value": "ArkTS卡片框架提供了updateForm接口和requestForm接口主动触发卡片的页面刷新,通过LocalStorageProp确认需要刷新的卡片数据。" + }, + { + "name": "reason_keep_background_running", + "value": "允许应用在卡片更新场景中后台运行" } ] } \ No newline at end of file -- Gitee