HarmonyOS Next配置权限提示 ‘reason‘ and ‘usedScene‘ attributes are mandatory for user_grant permissions
鸿蒙 HarmonyOS Next配置权限提示 The ‘reason‘ and ‘usedScene‘ attributes are mandatory for user_grant permissions
主要原因就是 鸿蒙HarmonyOS Next开发的过程中,某些权限的添加是需要添加使用场景usedScene和理由reson的,改成下面的即可
{
"name": "ohos.permission.LOCATION",
"reason": "$string:app_name",
"usedScene": {
"when": "always"
},
},