Using VR experiences within Android Apps¶
To enable web-based VR experiences within an Android app, the app needs to implement the Chrome CustomTabs API as described in this article.
Chrome CustomTabs remove the restrictions imposed by WebViews on serving VR content. While WebViews don't share their state with the Chrome browser, ChromeCustomTabs are fully embeddable browser extensions capable on anything that a native chrome browser can do.
Chrome CustomTabs gives apps more control over their web experience and make transitions between native and web content more seamless without having to resort to a WebView.
Download the attached starter project and replace the URL inside
MainActivity.java to view your VR experience.
To force open links in google chrome, follow the steps in this post.