new
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
|
||||
|
||||
//https://gitcode.com/openharmony-tpc/flutter_samples/blob/master/ohos/docs/08_FAQ/%E7%94%B3%E8%AF%B7%E6%9D%83%E9%99%90%E7%9B%B8%E5%85%B3%E9%97%AE%E9%A2%98.md
|
||||
{
|
||||
"module": {
|
||||
"name": "entry",
|
||||
@@ -34,7 +36,22 @@
|
||||
}
|
||||
],
|
||||
"requestPermissions": [
|
||||
{"name" : "ohos.permission.INTERNET"},
|
||||
{
|
||||
"name": "ohos.permission.INTERNET",
|
||||
"reason": "$string:permission_internet_reason",
|
||||
"usedScene": {
|
||||
"abilities": ["EntryAbility"],
|
||||
"when": "always"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "ohos.permission.VIBRATE",
|
||||
"reason": "$string:permission_vibrate_reason",
|
||||
"usedScene": {
|
||||
"abilities": ["EntryAbility"],
|
||||
"when": "inuse"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -11,6 +11,18 @@
|
||||
{
|
||||
"name": "EntryAbility_label",
|
||||
"value": "ohos"
|
||||
},
|
||||
{
|
||||
"name": "permission_internet_reason",
|
||||
"value": "Network access required for app functionality"
|
||||
},
|
||||
{
|
||||
"name": "permission_vibrate_reason",
|
||||
"value": "Vibrate feedback for user interactions"
|
||||
},
|
||||
{
|
||||
"name": "permission_clipboard_reason",
|
||||
"value": "Access to clipboard for paste operations"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user