SamsungInternet / support

For general Samsung Internet support. You can use the Issues register here as a way to ask support questions.
MIT License
17 stars 0 forks source link

support Android Intents for deep-linking URLs in Samsung Internet Browser on Gear VR #16

Closed cvan closed 5 years ago

cvan commented 7 years ago

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://):

<a href="intent://#Intent;package=com.samsung.browser;S.uri=https://aframe.io/aframe/examples/showcase/spheres-and-fog/;end">Enter VR</a>

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:

AdaRoseCannon commented 7 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.

cvan commented 7 years ago

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

AdaRoseCannon commented 6 years ago

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.

cvan commented 6 years ago

@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.