New issue
Advanced search Search tips

Issue 668481 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug
Proj-XR
Proj-XR-VR



Sign in to add a comment

VR requestPresent denied on Pixel with Daydream

Project Member Reported by aerotwist@chromium.org, Nov 24 2016

Issue description

I'm building a small sample for VR with a Pixel and a Daydream headset. In the page I've registered event listeners for VR events, e.g.

window.addEventListener('vrdisplayactivate', evt => {
  evt.preventDefault();
  this._activateVR();
});

Which I understand should be an indicator to Android that it should not launch the Daydream app when the device is placed on a Daydream headset, or when requestPresent is called within the app code.

Unfortunately as soon as the Pixel is placed on the headset, or requestPresent is called, the Daydream app kicks in. If I switch back to Chrome I get the following rejection error from the requestPresent Promise:

NotAllowedError: Presentation request was denied.

It could be my bug, this one, but if so I'm not sure where!
 
Which version of Chrome are you using? This is only supported in Canary at the moment.
Yeah I was using https://play.google.com/store/apps/details?id=com.chrome.canary&hl=en, which updated today (M57), and I enabled the WebVR flag in about://flags.
To confirm, it's 57.0.2929.0
Status: WontFix (was: Untriaged)
D'oh! My bad. I didn't realise that it would launch the Daydream app to do view centering before dropping back to Canary. Clearly this is WAI... :D
Labels: Proj-VR

Sign in to add a comment