Closed cvan closed 5 years ago
To open the GearVR browser specifically the intent should probably be something like: intent://#Intent;package=com.sec.android.app.svrbrowser;S.uri=https://aframe.io/aframe/examples/showcase/spheres-and-fog/;end
We are going to take a look into this.
Disclaimer: I'm by no means an expert with Samsung Internet Browser or the Gear VR version.
Just for others who might be investigating this, there's some useful stuff info I discovered here: http://developer.samsung.com/internet/android/extension-guide
The ovrweb:// protocol will open what ever browse the user has set as default which is usually the Occulus browser but can be set to Samsung Internet for GearVR. I am looking for more info into intents.
@bluemarvin, colleague and Gecko platform Engineer, might be able to point you in the right direction. He implemented this recently for a special build of Gecko for Android.
It would be nice to have Android Intents supported in Samsung Internet Browser.
My specific use case is I want a user on 2D mobile be able to click the "Enter VR" button on an A-Frame WebVR site, and have that trigger opening the Samsung Internet Browser in Gear VR mode.
In order to intercept that click, an Android Intent would need to be registered for the Samsung Internet Browser Android app, as well as a JavaScript protocol (
intent://
):Here are the docs for Android Intents with Chrome, which works today in Chrome for Android.
See the discussion in this Twitter thread: https://twitter.com/cvanw/status/910428329114689536
Related reading: