webxr-polyfill icon indicating copy to clipboard operation
webxr-polyfill copied to clipboard

iOS 13 adds permission API for device motion

Open blairmacintyre opened this issue 4 years ago • 1 comments

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.

blairmacintyre avatar Jan 24 '20 12:01 blairmacintyre

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.

danrossi avatar Feb 25 '20 12:02 danrossi