support icon indicating copy to clipboard operation
support copied to clipboard

can't open link in app using intents

Open vesper8 opened this issue 6 years ago • 4 comments

These two links work perfectly in Chrome for opening a youtube video in the Youtube/YoutubeVR app, or direct the user to the app store if it's not installed

    <a href="intent://FRGF77fBAeM/#Intent;scheme=vnd.youtube;package=com.google.android.youtube;S.browser_fallback_url=market://details?id=com.google.android.youtube;end;">youtube or market</a>
    <a href="intent://FRGF77fBAeM/#Intent;scheme=vnd.youtube;package=com.google.android.apps.youtube.vr;S.browser_fallback_url=market://details?id=com.google.android.apps.youtube.vr;end;">youtube-vr or market</a>

But these links don't work in Samsung Internet.

In any case I would want the video to open in the Occulus' version of YoutubeVR

How can this be achieved currently? How can I have a link that opens a youtube video in YoutubeVR that works in Samsung Internet?

I would have liked even more to be able to embed a 360 Youtube video in my website / webvr but that seems completely impossible at the moment

vesper8 avatar Dec 14 '18 22:12 vesper8

Furthermore, I tried adding another link that links directly to the youtube video

<a href="https://www.youtube.com/watch?v=FRGF77fBAeM">Direct Link</a>

Clicking on this loads the youtube video with a warning saying that this browser (Samsung Internet) does not support 360 video content and that we should open the youtube app instead, with a big green button that says 'open app'

Clicking on that button also triggers a 'unsupported feature'

Cmon! Are you trying to prevent people from clicking out of your browser? If you don't support the feature (360 youtube video) then let us create web apps that allow the user to open the link in a way that IS supported

vesper8 avatar Dec 14 '18 22:12 vesper8

Yes I agree!

This also doesn't work:

window.open('googlechrome://navigate?url=test.com');

If you do that and you haven't allowed pop-ups, then samsung internet will have a little popup notifying you that it blocked a popup. And on that notification, if you click 'Allow Popups', then it will open up the chrome browser.

BUT if you already allowed pop-ups for the website, then all it does is open up a new tab with the googlechrome://navigate?url=test.com in the address bar but it won't open up Google Chrome!

Can we please get this fixed?

CatGuardian avatar Feb 14 '19 23:02 CatGuardian

@vesper8, I think if you wanted an <a> tag that the user clicks on to open youtube, then you can do that by using <a href='youtube://.....'></a> if you find out what scheme youtube uses. Like google chrome uses googlechrome://. Clicking on an link seems to popup the app.

(but for whatever reason, window.open won't work)

CatGuardian avatar Feb 14 '19 23:02 CatGuardian

Relate-to: https://github.com/SamsungInternet/support/issues/74

rzr avatar Mar 17 '19 16:03 rzr