I want to redirect from a website to a desktop application. In addition, I want the website to show an alert and when I click "open", it will open the desired application on my desktop.
This is an example alert when signing into GitHub from VS Code. I want to do the exact same thing, just with a different application.
Thanks for helping!
Juan Pablo Isaza
First thing you need to know is that this works only for desktop apps built with Electron. Secondly, inside such an app, at bootstrap time the coders needed to add something like this:
//Register Protocol app.setAsDefaultProtocolClient("vscode");
Which registers the electron application with that protocol, so that the app will be the one reacting when you try to open it from the browser You can read more about it in the docs here or in this article here.