I use this to set a temporary fence:
ArrayList<AwarenessFence> awarenessFences = new ArrayList<AwarenessFence();
awarenessFences.add(TimeFence.inInterval(timeInMillis, timeInMillis+5L));
AwarenessFence customFence = AwarenessFence.and(awarenessFences);
However, the fence does not fire when time falls between timeMillis and timeMillis + 5L. My receivers are working properly, as all other fences are working properly. What could be the problem behind TimeFence not working?
source
share