错误信息
{"code":1002600003,"name":"Error","message":"App authentication failed."}
已配置权限:
ohos.permission.LOCATION
ohos.permission.APPROXIMATELY\_LOCATION
ohos.permission.LOCATION\_IN\_BACKGROUND
ohos.permission.INTERNET
async locationClick() {
let params: site.NearbySearchParams = {
query: "",
location: {
longitude: 120.263,
latitude: 31.897
},
radius: 5000,
language: "zh",
pageIndex: 1,
pageSize: 20
};
try {
const result = await site.nearbySearch(params);
} catch (e) {
console.log('e', JSON.stringify(e))
}
}
如HarmonyOS应用/元服务支持的API版本为API 9或更高,AGC自动生成证书对应的公钥摘要信息并计算出对应的SHA256指纹,您直接在AGC获取与配置即可
https://developer.huawei.com/consumer/cn/doc/app/agc-help-signature-info-0000001628566748\#section5181019153511