aframevr / aframevr/aframe

Display helpful message (to rotate orientation twice) when loading a scene in iOS/Safari in Landscape Mode

Open
#2,577 9 comments 0 reactions 1 assignee View on GitHub

@cvan is already working on this.

Since May 8, 2017.

mobile
Dominant language
JavaScript
Stars
17.6k
Forks
4.4k
PR merge metrics
No merged PRs in 30d

Description

Description:
When using the fullscreen mode in Safari/iOS, the navigation bar stays active.

I am raising this as an issue here, as the WebVR Polyfill Examples are working on iOS, but aframe does not. So it doesn't seem to be an iOS problem.

I was investigating why it is not working with aframe, but the only difference I found is that the examples are calling requestPresent handing over a canvas object.
vrDisplay.requestPresent([{ source: webglCanvas }]).then(function () { ...

Can this be the reason? I tried to add a canvas and call with the source, but it didn't work...

Also interesting the comment:

  function onVRRequestPresent () {
    // This can only be called in response to a user gesture.

Is this ensured in aframe?

WebVR-Examples:
https://webvr.info/samples/
WebVR-Example-Code:
https://github.com/toji/webvr.info/blob/master/samples/03-vr-presentation.html

  • A-Frame Version: 5.0
  • Platform / Device: iOS/Safari
  • Reproducible Code Snippet or URL:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.