LocationSensor Extension. Accuracy. Geocoder. GeomagneticField

Congratulations @juananton1991 !
Extraordinary work !

3 Likes

You are amazing. No words to describe how grateful I am. Thank you very very much for this.

3 Likes

Fantastic contribution, very grateful!

2 Likes

I tested almost everything, and everything works well except GotFromLocation which returns nothing.
In addition I would like to know the distance of points that I touch on the map or markers that I will place. How can I receive BearingTo and DistanceTo when I need it?

2 Likes

Which is the Min SDK? I cant execute it on some cellphones

2 Likes

it is necessary to limit for some android versions, 5.1.1, it did not work

what is the minimum to work?

2 Likes

Is there a way to use this extension to prevent the use of fake GPS and detect if Mock Locations are enabled?

Thanks

André Marsola

2 Likes

Welcome.
Maybe This :

2 Likes

UP!

Do you know any extension that allows us to block the “mock location” option?

Thank you very much to all

[image]

hello when install apk . on open app request to location permission with
all time access
but when i build apk with your aia location permission is allow only while using the app
no all time option to select


If so, you can copy the blocks to your backpack and try to construct according to your own style and if possible you can create such permission

why Allow all the time permission does not show
can any one solve it !
thanks

i already use this aia and build apk
https://community.kodular.io/uploads/short-url/7HOGMHbdlxWFuIHLb7sRccVXAX4.aia
and location permission is only
WhatsApp Image 2021-02-25 at 21.26.42

and apk install permission
https://community.kodular.io/uploads/short-url/l4VZWj3VNRQ13xPMHIQecgZdelb.apk
WhatsApp Image 2021-02-25 at 21.26.42 (1)

as far as I now this depends on the Android version you are using… EDIT: and “Allow All the time” is available only for Android 10, see also my tests here
so which device and Android version are you using for your tests?
Taifun

PS: no need to shout here in the community…

thanks for reply dear Taifun
phone is samsung galaxy a71 -android 10
as you see i use android studio AVD (android 10) too
and same result

with this apk (
https://community.kodular.io/uploads/short-url/l4VZWj3VNRQ13xPMHIQecgZdelb.apk
Result
22

ok… it seems to be, you have to wait for an answer from @juananton1991
Taifun

May be problem with the extension used in the aia. Instead of extension(kio4) use default Google apps alone to get user location

it does only show if the extension uses the permission android.permission.ACCESS_BACKGROUND_LOCATION and as this extension is not able to run in the background, you actually do not need “Allow all the time”…

Taifun

solved it by add ACCESS_BACKGROUND_LOCATION in manifest.xml
Result : Allow all the time

but a problem i have with BLE Scan in samsung android 10 while screen is off Scan Stoping

which however does not help to get the extension running in the background…
Taifun

Then how can you read the location even though the application is not used?