aframevr / aframevr/aframe

Videosphere not working with Cordova/Capacitor JS

Open
#4,867 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description:

I've created a simple vr app using Cordova following the guidelines on your website but when I click on the VR button I get this error:

webvr-polyfill.js:382 Uncaught (in promise) TypeError: Failed to execute 'exitFullscreen' on 'Document': Document not active
    at O (webvr-polyfill.js:382)
    at webvr-polyfill.js:3039
    at new Promise (<anonymous>)
    at w.v.requestPresent (webvr-polyfill.js:2953)
    at HTMLElement.value (a-scene.js:337)
    at i.onEnterVRButtonClick (vr-mode-ui.js:72)
    at bind.js:12
    at HTMLButtonElement.<anonymous> (vr-mode-ui.js:193)

and then all I see is a grey screen behind the VR canvas. When I try to exit VR mode the video disappears altogether.

  • A-Frame Version: 1.2.0
  • Platform / Device: Android
  • 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.

Research direction

Start by reproducing the A-Frame 1.2.0 case on Android with Cordova or Capacitor, using the reported VR-button flow. Trace the failure through webvr-polyfill.js, a-scene.js, and vr-mode-ui.js, including the exit path. Done means entering VR no longer produces the Document-not-active error or a grey screen, and exiting does not make the video disappear.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
mobile-dev, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.