Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
cvan opened this issue Sep 26, 2017 · 4 comments

Comments

@cvan
Copy link

cvan commented Sep 26, 2017

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:

@cvan cvan changed the title support Web Intents for deep-linking to Samsung Internet Browser on Gear VR support Android Intents for deep-linking URLs in Samsung Internet Browser on Gear VR Sep 26, 2017
@AdaRoseCannon
Copy link

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
Copy link
Author

cvan commented Oct 23, 2017

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
Copy link

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
Copy link
Author

cvan commented Jan 30, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants