How to make a button only works when the device is in a certain radius of an address?

how to make a button only works when the device is in a certain radius of an address?

Means you want to target your users. You can use location or maps component for that and put latitude and longitude for that specific region.

And show what you tried , show blocks and what result you got

search for geo fence
see for example Search results for 'geo fence' - MIT App Inventor Community

Taifun

Block2

how to make this correct?? still stuck here…

Your extension was working perfectly or not. & what about your extension

It works perfectly…
But

1 Like

an extension does not need loads of blocks… only one is perfectly fine if that can solve a problem…
but please start a new thread, add a screenshot of the blocks and a small description of its functionality…
thank you!

Taifun

1 Like

Ok @Taifun thanks for your suggestion…I will create a new topic for the extension… :+1:

the extension still not workin because marker 2 latitude and longitude cannot adjust to current position. how to make it right?

What does you mean…I set marker 2 longitude and latitude to current longitude and latitude obtained by location sensor…
BTW,I’m publishing the extension on a new topic right now.You can ask my there…

You can see here :

ok. you are amazing btw, could work with that.

1 Like

Thanks very much :heart_eyes: