Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add button on iOS to request motion permissions to allow WebXR #71

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ivnnv
Copy link

@ivnnv ivnnv commented Apr 27, 2020

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.

@aykutarici
Copy link

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

@himorin himorin changed the base branch from master to main January 15, 2021 05:05
kevleyski pushed a commit to kevleyski/webxr-samples that referenced this pull request Dec 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants