Try tasker
Condi similar to tasker but free. I just set it to do the same thing.
Wondering though if doing this sucks more battery since it needs to detect location all the time compared to wifi just toggling on its own.
How would the app know that you are in range without wifi already being on?