如何解决startDeviceMotionListening 返回失败,提示null sensor?
wx.startDeviceMotionListening({
interval: 'normal',
success(res) {
console.log('startDeviceMotionListening res', res)
},
fail(err) {
console.log('startDeviceMotionListening err', err)
},
complete(res) {
console.log('startDeviceMotionListening complete', res)
}
})
[图片] 手机:荣耀 MagicOS 7.0 [图片]