https://kotlinlang.org logo
Title
s

Shushant Tiwari

04/11/2023, 4:56 AM
Hi folks, I am stuck with compose multiplatform for desktop. Can anyone here help me to find a way to get the device permissions such as location permission for desktop app?
m

Michael Paus

04/11/2023, 11:35 AM
“location permission for desktop”??? What API are you using to get at that information on a desktop platform?
s

Shushant Tiwari

04/11/2023, 11:37 AM
Trying to build a weather app in compose multiplatform was able to do it for mobile(Android&Ios) how we can achieve the same for desktop
Or do i need to rely on IP
@Michael Paus
m

Michael Paus

04/11/2023, 11:39 AM
There is no platform independent API to get at the location and so there is no platform independent way to get any permissions. You can only use OS specific APIs here.
s

Shushant Tiwari

04/11/2023, 11:41 AM
Agree. same we are doing for ios and android but not able to find a way to do it for desktop is there any Java framework or something via we can do the same. Btw thanks for responding @Michael Paus
m

Michael Paus

04/11/2023, 11:43 AM
I have built one for my own purposes (not publically available). It uses an external GPS-Mouse via USB.
s

Shushant Tiwari

04/11/2023, 11:44 AM
Got it Thanks 🙏🏻 @Michael Paus