await wx.startLocationUpdateBackground({
success: (res) => {
console.log("location函数:startLocationUpdateBackground的RES成功", res)
wx.onLocationChange(_locationChangeFn)
},
fail: (err) => {
console.log("location函数:坐标RES失败", err)
that.setData({
errorData: err,
locationError: 1
})
}
})
今天好几位用华为鸿蒙自动升级6.0的的队员反馈说小程序无法使用,目前鸿蒙也没有单独的测试渠道(真机调试),我就让其中一名队员配合我上传了错误的代码,主要问题应该是在wx.startLocationUpdateBackground这个API上,上图是返回的错误信息,其他系统的人员暂时没有这个问题,还在正常使用。

定位到了 后续修复
还没有好吗
微信客户端版本号:Version 8.0.13
鸿蒙版本号:6.0.0.112 SP12
手机型号:nova 14
更新此鸿蒙版本之前小程序可以正常使用!