tetrio / issues

Report issues and discuss improvements / feature requests around TETR.IO
https://tetr.io
387 stars 21 forks source link

Deep links / Intent links to desktop app #1253

Open goSciuGH opened 5 months ago

goSciuGH commented 5 months ago

Checklist

Is your feature request related to a problem? Please describe.

One thing that always felt weird with Tetr.io is how links work. It's quite common for people to share their replay links, lobby links, etc. on Discord, Twitch, Twitter, and so on. They technically do what they're supposed to do: open related page in the browser. But for someone who uses desktop app, links become useless and/or inconvenient, as player has to manually open the game and paste the link there.

Describe the solution you'd like

Ideally, I think that Tetr.io should use intent/deep links which open the app on user's computer. I don't really know how possible is this, but the way I see it is to have the link open the page in the browser that checks if a desktop app is available (stored in cookies? for example if user has previously opened desktop app through a button in browser version of the game - see next section) and redirects to it if true, or loads actual related page in browser if false. If that step can be skipped, and app can be opened directly, that'd be even better.

Describe alternatives you've considered

At very minimum, I'd like there to be an "Open in desktop app" button on every page. That way, links still open in browser, but you have an option to move to your desktop app. Still would be a rather slow option, but definitely faster than the only option available at this moment.

Additional context

No response

ZaptorZap commented 5 months ago

There is an "open in desktop" button? Perhaps you missed it? image

In addition, if you're opening a replay from Tetra Channel, it will immediately open with the tetrio:// protocol link. If this fails, only then will it open a new tab with the clicked replay—once you click again, that is.

I'm aware that other apps such as Discord tends to be more "seamless", but that seamlessness easily comes across as aggressiveness. I know I'm annoyed when I accidentally click an invite link and am immediately thrust away from my browser without confirmation.