You must ask for permission to use the location first.
Needed permissions:
android.permission.ACCESS_FINE_LOCATION
android.permission.ACCESS_COARSE_LOCATION
android.permission.ACCESS_MOCK_LOCATION
android.permission.ACCESS_LOCATION_EXTRA_COMMANDS
3 Likes
Moulaali
(Moula Ali M.)
February 18, 2021, 8:51am
#6
Thanks can you please share aia if possible
No permission required, if they enable location service, immediatly you can get it by using google map which is inbuild in the kodular app
Just use these two blocks to get lattitude and longitude
1 Like
getlocationwhenGPSon.aia (2.0 KB)
This aia will give geo value immediatly but user need to enable GPS on but no need to ask any permission
2 Likes
luv.ak.tech
(Aarush Kumar)
February 18, 2021, 9:14am
#15
not correct what if user does not move then the event will also not fire i prefer you the best use location sensor component or use the extension by @juananton1991
1 Like
It works well even if you are ideal in position or moving .
I have tested and still working fine in my school attendance app.
1 Like
Moulaali
(Moula Ali M.)
February 18, 2021, 9:46am
#18
this is not working values are coming as 0
You’ll have to wait a few seconds and refresh again as it says in the AIA
Moulaali
(Moula Ali M.)
February 18, 2021, 10:52am
#21
thanks all of you for the replies
Moulaali:
this worked
What worked? Please mark the original & exact post as the solution.
2 Likes