DeviceOrientation
iOS(特に 13 以降)でのモーションセンサー有効化 : まだプログラマーですが何か?
該当ページを開ききって、ユーザーがそのページの中にあるボタンをタップしたタイミングで許可を得るためのダイアログを表示し、許可された場合のみ DeviceOrientationEvent のイベントハンドラが有効になる
iOS13+でジャイロ許可、やっぱりDeviceOrientationControlsを使いたい | 【公式】トカチニッチ
「カメラ起動」の許可要求はユーザアクションなしでもそのまま出せるのに…Appleの考えるセキュリティの奥深さに理解が追い付かない。
How to requestPermission for devicemotion and deviceorientation events in iOS 13+ - DEV Community
https://github.com/aframevr/aframe/blob/b164623dfa0d2548158f4b7da06157497cd4ea29/src/components/scene/device-orientation-permission-ui.js#L55-L75
aframe/device-orientation-permission-ui.md at master · aframevr/aframe
iOS13以外では、requestPermissionは不要なので、returnしている
deniedのときにダイアログを表示している
再びrequestPermissionを呼ぶ様になっている
しかし、Safariだと実際無視されてしまうよう
https://aframe.io/aframe/examples/showcase/anime-UI/
オフィシャルのサンプル
New WebKit Features in Safari 13 | WebKit
DeviceOrientation Event Specification
端末画面の向きと端末のモーション  |  Web  |  Google Developers