I just left my house for a couple minutes and the IP adress change trigger failed to fire again, both when i left and when i arrived home, my macro that logs the magic text IP every minute managed to catch it both times.The code to get a local ip address is a bit wacky and it is possible that at some point the ip address cannot be obtained. In this case the trigger will not fire. So if for any reason your ip address changed but MacroDroid couldn't determine your new local ip then you would see the behaviour you are witnessing. If you can create a good test macro where you log the reported IP address regularly then please send that via report a bug in the troubleshooting section and point out at what time it failed to fire. I can take a look through this and try and figure out what might be going on.
For me it is pretty reliable it has only failed to fire once since my last post here, i also added a macro to catch it incase the ip change trigger failsHi 420,
first of all thanks for thread. Using IP change without the need to keep location On - that's a beaut. In theory, tho. Because I can confirm that reliability on IP change is not great. I'm testing this now for over a week, with 2 phones simultaneously on different mobile networks. Leave home in the morning -> change wifi/mobile date, then enter work place -> change mobile data/wifi. And vice versa in the evening. Triggers sometimes on both phone, sometimes on one phone, but not the other, sometimes not at all, sometimes up to an hour late etc, without any distinct differences between phone model or network provider. Completely random.
However, when I test the IP change trigger by manually toggling wifi on and off, it triggers always and more or less instantly. But not when I leave wifi enabled and just walk out of range. So I tend to believe, it's not that IP change doesn't trigger the macro, but that IP change from Wifi to data is not registered correctly or not promptly when Wifi is enabled. This must be Android specific (both my phones run Android 10) or Macrodroid specific. And not a matter of your IP provider (or your macro settings/constraints)
Cheers.
VPN on/off doesn't causes your ip adress basically. It is working same as proxy though.My IP macro has no constraints, that is, no specific IP settings need to be satisfied. It should trigger any time everywhere and regardless of current IP address. All it does, is switching Location On. Then invoke another macro (with otherwise empty trigger) that tests whether I'm connected to trusted network (yes -> no action, no -> change mode etc), then switches conveniently Location Off again. I've checked the activities logs, and fairly often IP change has not been recorded. Interestingly, it seems hardly ever working in the morning and reasonably reliable in the evenings. Might have to do with the weather...hazy in the mornings this time of the year, and clear in the evenings?!? Bizarre...
I should mention that I'm always in VPN. Perhaps this tempers with the detection of IP change? Though, toggling VPN on and off never triggered the IP macro. Which makes me wonder about my VPN provider, but that's beside the point.
I'm playing around with geofences, too, but they appear to be even more unreliable than the IP change.
Tests continue.......
Ref Geofence: for test reasons, I've set up a macro to force location update (every 3 minutes, easily before my phone kills any apps, if indeed it does), then run another macro that is constraint by being inside the particular geofence. Looking at my system log, that constraint macro never triggered because the constrain always fails - supposedly I'm not inside the geofence. When I check the blue dot on goggle map, then it sits exactly where the pin drops in my geofence definition. So, clearly, I'm inside. Also, the location update coords (long/lat) correspond. And still, the activity log constrain "inside geofence" failed.VPN on/off doesn't causes your ip adress basically. It is working same as proxy though.
Geofence is reliable if yor device can reach one of location data sources. If not, follow the instruction of dontkillmyapp.com. The background services of MD might be killed.
The location data reliability is different country by country, area by area. I think it a little worse in Europe, South and North America even I'm in downtown.Ref Geofence: for test reasons, I've set up a macro to force location update (every 3 minutes, easily before my phone kills any apps, if indeed it does), then run another macro that is constraint by being inside the particular geofence. Looking at my system log, that constraint macro never triggered because the constrain always fails - supposedly I'm not inside the geofence. When I check the blue dot on goggle map, then it sits exactly where the pin drops in my geofence definition. So, clearly, I'm inside. Also, the location update coords (long/lat) correspond. And still, the activity log constrain "inside geofence" failed.
What I also see in the logs, a lot of lines in white "DISABLE GEOFENCE", "ENABLE GEOFENCE" (-Update rate etc). And about 1 sec later "Geofence event: Home Status = outside", with a fused location about 5km away. It is always exactly the same location, and on both my phones. Anytime I switch Location On, the blue dot initiates on the other side of town. So, I assume it's the location of the provider, or cell tower (even though the 2 phones operate on different networks). I guess now, any time the Geofence Event happens, milliseconds after the system "enables geofence", I'm 5km away from where I'm really are (unless I opt to venture out to find this mysterious signal). Any thoughts how to circumvent this?
As I said in another thread that I've posted yesterday, the geofence entry/exit triggers do fire occasionally, but really only occasionally. 1 out of 10, perhaps. And on both phones equally randomly (just as the IP change triggers sometimes and sometimes not, tho that trigger fires rather 8 out of 10, so - still better)