<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<button onclick="new Gyroscope().start()">创建陀螺仪</button>
<hr/>
<button onclick="getDeviceorientation()">获取传感器数据</button>
<script type="text/javascript">
function getDeviceorientation() {
addEventListener('deviceorientation', function (n) {})
}
</script>
</body>
</html>
这个功能之前在微信android和ios版本长期使用,都没有出现过这个设备授权弹框
测试微信版本:1.0.1

你好,该弹框是否有影响到功能正常使用呢
代码已经提供了,你们看一下