immersive-web / webxr-polyfill

Use the WebXR Device API today, providing fallbacks to native WebVR 1.1 and Cardboard
Apache License 2.0
378 stars 84 forks source link

Fullscreen not entered correctly on iOS 13 #152

Open stalgiag opened 3 years ago

stalgiag commented 3 years ago

Hi!

The fullscreen API requests aren't working correctly with iOS and any browser. I have tested on:

I am testing with this which is the same code as the official WebXR Immersive VR sample. My only change was updating it to use the latest version of the polyfill which requests orientation permission in iOS.

Here it is what I see with Chrome 86.0.4240.99 and Android 10: Screenshot_2020-10-20-16-22-41-721_com android chrome

Here is what I see with iOS 13.7 and Firefox 28.2 (2470), Chrome 86.0.4240.93, and Safari 13: IMG_1045

Note that orientation updates work in both.

I am happy to help with this if I can get some assistance locating the probelm. I see the fullscreen requests in the build but not sure which dependency they are coming from. Perhaps cardboard-vr-display?

stalgiag commented 3 years ago

I see that this likely relates to PR 45 on cardboard-vr-display.

stalgiag commented 3 years ago

Also likely related to #148 here

stalgiag commented 3 years ago

Just updated to iOS 14.1 to confirm that it does not work here either.