immersive-web / webxr-polyfill

Use the WebXR Device API today, providing fallbacks to native WebVR 1.1 and Cardboard
Apache License 2.0
378 stars 84 forks source link

iOS 13 adds permission API for device motion #137

Open blairmacintyre opened 4 years ago

blairmacintyre commented 4 years ago

See the discussion here https://github.com/fartts/superfluity/issues/293

WebXR polyfill is silently printing "No device motion or orientation events will be fired until permission has been requested and granted." to the console, but needs instead to pop up a permission request.

There is no longer a permission setting in Safari's prefs in iOS.

danrossi commented 4 years ago

You can do this in your app. It needs to capture a user click to ask permission and cannot be done while going fullscreen. The notification is underneath the fullscreen element.