GeoFence is not working

Fabian2710

New member
Hello!
I'm trying to use GeoFence or current gps position as trigger, but it doesnt work. Already clean google play service cache, but nothing.
App has already permissions for use gps data

My device is MOTO G9
 
Last edited:

tanutanu

Well-known member
Is it the same result if you replace the geofence action to location? Geofence refers location in api level, but the frequencies seem to be different as Google documents.
 
Is it the same result if you replace the geofence action to location? Geofence refers location in api level, but the frequencies seem to be different as Google documents.
would you be kind enough to explain to me, geofence is driving me crazy.
I have installed the geo task plugin but it is not clear how to set up and use it.
if you help me I will be grateful thank you so much
 
guys my geofence I set it up so refer to the video in question.
but why don't we put in a trello-based mechanism capable of optimizing common projects and problems?
what do you think ?
I am also thinking of sharing a virtual machine with android emulator to simulate the behavior of macrodroid and there the best ones could show us the best settings and at the same time create video tutorials
it might be a good idea.
Let me know mirrorless greetings

p.s look my geofence configuration i have build a chanel on youtube about use of macrodroid

 

tanutanu

Well-known member
guys my geofence I set it up so refer to the video in question.
but why don't we put in a trello-based mechanism capable of optimizing common projects and problems?
what do you think ?
I am also thinking of sharing a virtual machine with android emulator to simulate the behavior of macrodroid and there the best ones could show us the best settings and at the same time create video tutorials
it might be a good idea.
Let me know mirrorless greetings

p.s look my geofence configuration i have build a chanel on youtube about use of macrodroid

I don't think you have any mistakes in your macro and geofence setting on MD itself.
I asked to try "location" trigger instead of "geofence" one.
On my Xiaomi phone, as my testing, location trigger fired when I was still in my home, but geofence was not working. Probably I have to across the geofence border to execute, or wait longer than location trigger because of the difference oi both internal mechanism.
 

Fabian2710

New member
ok, i´ve been reading LOG. May I am doing something wrong?

Context:
this is how I THINK geofence trigger works. If you have some corrections, obviously I will received it

The very first time that macro was created, everything worked great!. But when i tried to repeat the same results, for some reason, Geofence status not change.

wtf-is-wrong-with-it.jpg


Then, changed "Update rate" to 30s but it looks like is not refreshing my position:
rate-changed.jpg

PD: i did tests from my house (turning off and on) and in the street, walking in and out from geofence.

I don't know what to do guys. I hope somebudy can help us :(
 

Fabian2710

New member
Upgrade:

As a good science person, I did a lot of different tests to try to get an answer.
If my results are obvious for somebudy, sorry about it. Sometimes people get confuse with info. in other lenguage hahaha

First: In MY CASE, everything works fine. Geofences are perfectly working.

Second: Geofences only work when you are MOVING to the area from inside to outside or vice versa. But not when you are ALREADY INTO the area, standed on a point.

So, if you want to run a macro triggered by a geofence, you MUST to move from A to B point. Or in other words, you must to CROSS the geofence, not to be INSIDE the geofence.

I think is something like this:

» Me on point A ------------------------------| 30 sec. later | I moved to point B

» geofence: did you move from point A to B?: YES
is point B into the area? or crossed point B the geofence?: YES

» ok. Run the macro.


I hope it will help to somebody. If you have some corrections, obviously I will received it :D
 
Last edited:

tanutanu

Well-known member
ok, i´ve been reading LOG. May I am doing something wrong?

Context:
this is how I THINK geofence trigger works. If you have some corrections, obviously I will received it

The very first time that macro was created, everything worked great!. But when i tried to repeat the same results, for some reason, Geofence status not change.

View attachment 982


Then, changed "Update rate" to 30s but it looks like is not refreshing my position:
View attachment 983

PD: i did tests from my house (turning off and on) and in the street, walking in and out from geofence.

I don't know what to do guys. I hope somebudy can help us :(
I checked the geofence trigger behavior again and noticed nothing was happened when I was still in my home. I had to go out and back as you did.
On the other hand, geofence constraint worked a little different than trigger. It returns true and matches the condition to go ahead even though I was staying in the area.
 
hi guys, i'm more and more confused and i can't understand well.
why don't we create a macro for the goforce then we share it and in the entry gofence then editing them we insert our zones and see the log that comes out of it ??
what do you think ?
as I showed you in my video, I entered my geofence when I was logically out of the reference entrance area, I tried to change the various refresh rates but in all cases, once I entered the geofence area, the event does not occur it is never triggered.
I will try the second option as well, the legacy one not recommended by macrodroid which refers to the position following this path during the configuration phase (location) ----- (location event) but as reported by md it is not recommended to use it even for a higher battery consumption.
since we are on the subject why do not we also try the examples made by users geo task that refers to the geofence to understand how it is used and especially if it works.
thank you very much, i'm sure we can find out how to make it work
greetings mirrorless
;-)
 

tanutanu

Well-known member
hi guys, i'm more and more confused and i can't understand well.
why don't we create a macro for the goforce then we share it and in the entry gofence then editing them we insert our zones and see the log that comes out of it ??
what do you think ?
as I showed you in my video, I entered my geofence when I was logically out of the reference entrance area, I tried to change the various refresh rates but in all cases, once I entered the geofence area, the event does not occur it is never triggered.
I will try the second option as well, the legacy one not recommended by macrodroid which refers to the position following this path during the configuration phase (location) ----- (location event) but as reported by md it is not recommended to use it even for a higher battery consumption.
since we are on the subject why do not we also try the examples made by users geo task that refers to the geofence to understand how it is used and especially if it works.
thank you very much, i'm sure we can find out how to make it work
greetings mirrorless
;-)
OK, for investigation, could you write a simple macro like below:

T: enter geofence area with 50m circle from your home
A: popup "getting in"

That's all. Please make sure you turn on logging with detailed option to gather everything and disable all macros once. Then clear log and turn on the test macro again. Any other macros exclude the above test macro are still disabled please.

Now you go outside and walk to approximately 100 meters far with opening Google Maps. Don't forget to check the blue dot indices your position accurately before starting the monitoring. You need to set your home position certainly when you make the geofence area as well.

After getting back to your home, please share your log and continue to talk about your issue:)
 

MacroDroidDev

Administrator
Staff member
To confirm what has been said above the Geofence will only trigger when you enter or exit a specific area. There is an option to fire if you transition from an unknown location and this can be used to trigger when for example you first boot your device and your location is previously unknown.

If you understand the way MacroDroid works then this makes perfect sense as otherwise the trigger would fire over and over again and not be useful. If you want at any point to know if you are inside or outside a specific are you can use the geofence constraint to restrict macros, triggers or actions.
 

tanutanu

Well-known member
To confirm what has been said above the Geofence will only trigger when you enter or exit a specific area. There is an option to fire if you transition from an unknown location and this can be used to trigger when for example you first boot your device and your location is previously unknown.

If you understand the way MacroDroid works then this makes perfect sense as otherwise the trigger would fire over and over again and not be useful. If you want at any point to know if you are inside or outside a specific are you can use the geofence constraint to restrict macros, triggers or actions.
Yep, I understand the geofence designed behavior:) It's reasonable and @mirrorless m43 would understand as well coz he doesn't say any more.
Thank you so much for the additional breakdowns.
 
Last edited:
I've also been trying to use geofences and not getting any triggers whenever I cross rhe boundaries. I used both the option for leaving a known area or not.

I checked for location permissions for macrodroid and it seemed fine.

No idea what else I can try for troubleshooting geofence. There's nothing in the system log saying I crossed a boundary.
 

Endercraft

Moderator (& bug finder :D)
I've also been trying to use geofences and not getting any triggers whenever I cross rhe boundaries. I used both the option for leaving a known area or not.

I checked for location permissions for macrodroid and it seemed fine.

No idea what else I can try for troubleshooting geofence. There's nothing in the system log saying I crossed a boundary.
Endercraft said:
I think it doesn't trigger with screen off. I was using a Xiaomi Redmi Note 4 and I had setup geofences. They worked fine until one day I realized that they didn't trigger with screen off for some reason.
IMG_20220825_231901.jpg
 
in consideration of the big problems with the geofence, on the most recent versions of android and in particular on certain devices, because some of the best of the group including the developer, could not make a video tutorial with all the procedure to follow to solve the problem ??
I think it would be a very important thing and would give more credit and strength to our wonderful app.
those that are the limits of macrodroid unfortunately set by others must be circumvented and solved with technology and our intelligence.
we hope that my appeal is heard, only in this way will we be able to solve the other specific problems that reduce the enormous potential of md such as the activation of the hotspot currently impossible via macro and trigger event.
hopefully goodbye to all mirrorless m43
 
View attachment 3276
And that's one of the reasons I don't buy the most recent phones. Too much restrictions
unfortunately it is unthinkable that due to these limitations it is not possible to buy new mobile phones and use some important macrodroid features.
I refuse to believe it, we use our intelligence and technology to overcome all these problems.
I would also be in favor of an awareness campaign towards the developers of android o.s and some smartphone manufacturers who, in fact, with the wrong choices, are setting limits in the use of their devices.
it would be necessary to understand well how to sensitize them and express our dissent to them.
instead of going forward you go back ..
 
Top