diff --git a/src/utils/vr-caps-detect.js b/src/utils/vr-caps-detect.js index fc2737ad41519798326d1f2ce6cec57e5a8e5b23..c2869cb62ed4def83dec0c34891f0eebfd53297d 100644 --- a/src/utils/vr-caps-detect.js +++ b/src/utils/vr-caps-detect.js @@ -23,8 +23,10 @@ function isMaybeDaydreamCompatibleDevice(ua) { const GENERIC_ENTRY_TYPE_DEVICE_BLACKLIST = [/cardboard/i]; export function detectInHMD() { - const isOculusBrowser = /Oculus/.test(navigator.userAgent); - return isOculusBrowser; + const ua = navigator.userAgent; + const isFirefoxReality = /Firefox/.test(ua) && /Android/.test(ua) && window.hasNativeWebVRImplementation; + const isOculusBrowser = /Oculus/.test(ua); + return isOculusBrowser || isFirefoxReality; } // Tries to determine VR entry compatibility regardless of the current browser.