[LayaAirIDE 2.0]IOS微信内置浏览器陀螺仪问题 Laya2.4.0bate

安卓web端测试陀螺仪无问题
ios注册Listener没有回调
已经测试过的方式:
以下三种方式都无返回
window.addEventListener('devicemotion', function(event){})
window.addEventListener('deviceorientation', function(event)  {})
Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onDeviceorientation);
 连接打开方式都由微信扫一扫打开,safari不支持此demo运行
查找到资料地址:
https://caniuse.com/#search=deviceorientation
ios测试微信浏览器页面地址:
https://www.audero.it/demo/device-orientation-api-demo.html
iso测试图如下:

IMG_20191202_175422.jpg

 
 
上面测试的demo是一个单html页面
相同文件放置在laya项目/bin/demo/device-orientation-api-demo.html
发布后打开后无反应

IMG_20191202_180147.jpg

 
 
不知具体原因如何?疑似Bug
demo已上传
已邀请:

Aar0n

赞同来自:

陀螺仪是原生浏览器的接口,非laya的, 有兼容性问题的。要看浏览器是否支持

要回复问题请先

商务合作
商务合作