Hi All, In my Mendix Native project, I am trying to get current user location using nanoflow commons action “Get current location” action. I am shown a prompt on iOS device to allow location access. However, No matter which option I select from options ("allow location usage while using app"/"Allow once" / “Deny”). I am getting “An error occurred please contact administrator. and console shows error: “User denied access to location services.” which is not true. I would like to know if there are any other ways to get current user/device location or any way to prevent this error?
asked
Akash Trivedi
1 answers
0
hii Akash,
you can use Javascript’s geolocation Api to get user’s current location.