https://kotlinlang.org logo
Title
a

Arkadii Ivanov

02/13/2021, 12:28 PM
Are there any docs/resources for deep links? I need the app to run with arguments from the clicked link.
r

rsktash

02/13/2021, 2:39 PM
a

Arkadii Ivanov

02/13/2021, 2:42 PM
Thanks! This is for Android, but I'm looking for something for desktop. All I need is to find out how to make my app open when a link is clicked.
r

rsktash

02/13/2021, 2:57 PM
https://stackoverflow.com/questions/20074610/handle-custom-url-schemes-in-an-os-x-java-application I found this answer from stackoverflow. It’s related to packaging. I think we should open feature request
👀 1
j

jim

02/13/2021, 4:24 PM
This seems like a generic question about desktop apps, rather than being Compose specific, so I'm not sure the folks here will have the relevant expertise. That said, I was curious and did a bit of Googling. Unfortunately, it was surprisingly hard to find useful answers, but it looks like the basic approach is to register a protocol with the underlying operating system (which is a very platform-specific thing to do) and then have it launch your program (or a wrapper script around your program). The best doc I ran across was this one: https://support.shotgunsoftware.com/hc/en-us/articles/219031308-Launching-applications-using-custom-browser-protocols - but I didn't try it so your mileage may vary. It is an interesting topic, and if you find (or create) a good solution, I'd love for you to share and please cc me (@jim).
💪 1
a

Arkadii Ivanov

02/13/2021, 4:25 PM
Thanks, I will play with it