diff --git a/entry/src/main/module.json5 b/entry/src/main/module.json5 index 787538399cc4f9f45c3833dcb034108d02858854..a13d9e6d93a36a2db6c5f23e1f290b140686421f 100644 --- a/entry/src/main/module.json5 +++ b/entry/src/main/module.json5 @@ -35,6 +35,7 @@ "requestPermissions": [ { "name": "ohos.permission.INTERNET", + "reason": "$string:reason_internet", "usedScene": { "abilities": [ "EntryAbility" diff --git a/entry/src/main/resources/base/element/string.json b/entry/src/main/resources/base/element/string.json index 6bce4393d6542b49a5042b2394ca513334678a1b..4bcec346486687be26e02594a6dc9b31e104dea9 100644 --- a/entry/src/main/resources/base/element/string.json +++ b/entry/src/main/resources/base/element/string.json @@ -51,6 +51,10 @@ { "name": "web_press_copy_link", "value": "复制链接" + }, + { + "name": "reason_internet", + "value": "Allow the app to use the Internet network in Web component 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 a174106912cb561da4450054b7f7a3489bc3de38..d5717c94ec587eb19543bf35d1d850535d33c2ed 100644 --- a/entry/src/main/resources/en_US/element/string.json +++ b/entry/src/main/resources/en_US/element/string.json @@ -51,6 +51,10 @@ { "name": "web_press_copy_link", "value": "Copy Link" + }, + { + "name": "reason_internet", + "value": "Allow the app to use the Internet network in Web component 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 c71ed0298a591d9b57a280413a6bad53fd8f5221..658cd47b9ba148153b6bc9dadc6d56888285d157 100644 --- a/entry/src/main/resources/zh_CN/element/string.json +++ b/entry/src/main/resources/zh_CN/element/string.json @@ -51,6 +51,10 @@ { "name": "web_press_copy_link", "value": "复制链接" + }, + { + "name": "reason_internet", + "value": "允许应用在Web组件场景中使用Internet网络" } ] } \ No newline at end of file