Skip to content
This repository was archived by the owner on Jul 21, 2026. It is now read-only.
This repository was archived by the owner on Jul 21, 2026. It is now read-only.

On Chrome 74, Enter VR Mode on mobile stops working with http:// protocol.  #344

Description

@acoderatwork

On Clicking a button enter VR Mode, element.requestFullscreen() is executed by calling the function requestPresent([{ source: _this.m_renderer.domElement }]);

requestFullscreen throws the error Failed to execute 'requestFullscreen' on 'Element': API can only be initiated by a user gesture.

So entering full screen is failing followed by below errors:

Uncaught (in promise) TypeError: fullscreen error
at requestFullscreen
at new Promise ()
at CardboardVRDisplay.VRDisplay.requestPresent
at HTMLButtonElement.button.onclick

Same error appears on mobile while visiting https://immersive-web.github.io/webvr-polyfill/examples/ and on clicking the VR button.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions