-
22 2024-07
getLocation:fail the api need to be declared in the requiredPrivateInfos field in app.json/ext.json需要用到获取位置Api(这个需要在小程序平台申请获取权限),获取接口权限后,在开发工具中能够正常获取位置经纬度数据,但是当扫码预览或体验版测试时会报错

getLocation:fail the api need to be declared in the requiredPrivateInfos field in app.json/ext.json需要用到获取位置Api(这个需要在小程序平台申请获取权限),获取接口权限后,在开发工具中能够正常获取位置经纬度数据,但是当扫码预览或体验版测试时会报错