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

Add button on iOS to request motion permissions to allow WebXR

Open ivnnv opened this issue 4 years ago • 1 comments

iOS 13.4 requires sites to be https and having the user manually triggering and granting permissions, otherwise any WebXR or WebVR features wont work. This PR checks if the device run iOS and shows a message and the button that triggers the system prompt. PS: this PR also updates the polyfill to its latest version: 0.10.11

req-perms

prompt

Heres' the build for this PR: https://ivnnv.github.io/webxr-samples/ Anyway the polyfill has a bug and the demos wont work, but ill reporting that on its repo.

ivnnv avatar Apr 27 '20 22:04 ivnnv

Hello, I tried to test this pr but, there is "your browser does not support webxr" error and permission button does not shown on. Tested with;

  • ipad 6
  • ios 13.4.1
  • chrome 84.0.4147.71

aykutarici avatar Jul 22 '20 04:07 aykutarici