Display helpful message (to rotate orientation twice) when loading a scene in iOS/Safari in Landscape Mode
@cvan is already working on this.
Since May 8, 2017.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.