HarmonyOS鸿蒙Next中无法获取设备唯一标识符
HarmonyOS鸿蒙Next中无法获取设备唯一标识符 参考文档,通过deviceInfo.serial获取设备唯一标识符uuid,但是实际获取为空。
接下来提示要获取以下权限:
{
"name" : "ohos.permission.sec.ACCESS_UDID",
"reason": "$string:uuid_access_desc",
"usedScene": {
"abilities": [
"FormAbility"
],
"when":"inuse"
}
}
加上权限运行,提示以下错误,无法运行:
Install Failed: error: failed to install bundle. code:9568289 error: install failed due to grant request permissions failed.
更多关于HarmonyOS鸿蒙Next中无法获取设备唯一标识符的实战教程也可以访问 https://www.itying.com/category-93-b0.html

