How do I allow a browser on IOS 13 to access my iPhone 6s' Gyroscope?

荒凉一梦 提交于 2019-12-24 19:22:51

问题


Original Question

I am attempting to run a webVR program using A-Frame on my iPhone 6s, and these three browsers I have tested do not have access to my gyroscope.

Safari
Chrome
Firefox

I believe this could be fixed if the apps had the permission to, but there is not an easy way to do this switch that I have found. If anyone can give me a way to do this (without jailbreaking) it would be appreciated.

Currently when I enter https://vrfinal.glitch.me and switch to google cardboard view on chrome, it bugs out and does not roatate my view when my phone moves.


回答1:


Use A-Frame master build on iOS 13+. Make sure to serve your content over https.

Corrected glitch. Make sure you access over HTTPS



来源:https://stackoverflow.com/questions/59183207/how-do-i-allow-a-browser-on-ios-13-to-access-my-iphone-6s-gyroscope

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!