Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How could I open/ask/launch an app through a web browser?

How can I launch an app through JavaScript or setup a shortcut like spotify:open on my app?

Examples:

Any help of how I can do this?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Thank you for your help,
Eric.

>Solution :

The app needs to implement the custom protocol then you can invoke the protocol via url link or javascript redirect like we do for http, https or mail.

For example, following link opens spotify if user confirms the dialog asking if it is what he wants:

<a href="spotify:open">Open Spotify</a>

Here is how a custom protocol can be implemented/supported in Electron apps: https://www.electronjs.org/docs/latest/api/protocol

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading