[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测试图如下:
上面测试的demo是一个单html页面
相同文件放置在laya项目/bin/demo/device-orientation-api-demo.html
发布后打开后无反应
不知具体原因如何?疑似Bug
demo已上传
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测试图如下:
上面测试的demo是一个单html页面
相同文件放置在laya项目/bin/demo/device-orientation-api-demo.html
发布后打开后无反应
不知具体原因如何?疑似Bug
demo已上传
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
Aar0n
赞同来自: