Force Twitch app to open


#1

Hi,

First i don’t know if i’m in the right section so excuse me if i’m not.
I’m working on a chrome extension and i’m trying to link my push notification (when streamer is online) to the stream link as most user in my opinion use the twitch app (on desktop) i try to find a way to force to open it without the confirm window on the browser as the deep link do.
I checked documentation about deep link (for mobile) but i can’t find any other solution.

Here is my code

  axios.get("https://api.twitch.tv/helix/streams?user_login=zoltan",{headers:{'Client-ID':client_id}})
  .then(response => {
        console.log(response.data)
        opt.message = response.data.data[0].title;
        chrome.notifications.create(opt);
        chrome.notifications.onClicked.addListener(redirectWindow);
        })

        function redirectWindow(){
            window.open('https://www.twitch.tv/kaosvmd');
          //window.open('twitch://open?stream=kaosvmd')
        }

Thank you in advance


#2

You can’t is the short answer.

Chrome/browsers will always prompt if you are attempting to trigger/open an external program for security reasons. There is no bypass for this as it’s at browser level