Geofence missing in Action

revver

New member
I convinced a friend to install MD. I talked him through his first macro. Now we want to edit it. Created a geofence called Home. Added an IF clause and tried to use At Home as the condition. Cell towers is the only option under Location.

So I had him create a new geofence at a local wi-fi hot spot and use an Enter zone trigger. Action Enable Wi-fi. That worked.

Since geofence is available in Triggers but not in Actions I wondered if there is some setting I performed on my Galaxy that he hasn't done on his Galaxy. Other than that, is there any reason the geofence option would be missing from IF options for Location?

I didn't think to check if geofence was available in Constraints.
 

MacroDroidDev

Administrator
Staff member
A Geofence action does not make sense but there is a constraint called Geofence (Location) that can be used. This can be used in the IF clause action so I'm not sure why you think it cannot.
 

revver

New member
Sorry, a geofence action makes no sense. What I should have said was Since geofence is available in Triggers but not as a condition of an IF, I wondered if there is some setting ...
When I was in the company of my friend we both updated to the latest MD version. At the time it didn't occur to me to use a geofence constraint. I only thought of it later.
Right then I was only trying to duplicate on his phone a working macro I had written.
I had already talked him through the only trigger and the only action - Speak Text. Simple. It worked for him. Now I wanted it to occur only at home as it does for me. He created the geofence. Then I tried to talk him through adding an IF clause with the condition of being at Home. He got as far as adding the IF clause but when he tried to add a condition - Location - he only had one option, Cell towers. I had two options, cell towers and geofence. So we abandoned our attempts over the phone.
Once with him, we both updated and performed the same steps side by side but he is still missing a geofence condition option; I'm not missing it.
He has Galaxy S6; I have S7edge. Could it be because his settings are different? How do I check? I figure it must be an MD setting rather than a phone setting but that's by no means sure.

I can use a constraint now but that is no longer the point. He is unable to properly use a Location-based IF anywhere.
What do you think?
 

FrameXX

Well-known member
That sounds really weird. I don't know where could be a problem if he have the latest version.
 

MacroDroidDev

Administrator
Staff member
Geofence constraint has a minimum SDK version of 23, so it needs Android 6+. However I can't for the life of me remember why this limitation is here and it's entirely possible that it really shouldn't be (maybe I just copy pasted a template bit of code and forgot to clean this up).

I will remove this limitation for the next update because the Geofence trigger has no such limitation and it basically uses the same thing underneath.
 
Top