If you want to add a location-based behaviour to your App and not ruin your user’s battery life, Geofences are usually the way to go. The idea is simple: Tell the Android system a location and it will let you know, when the user has reached it. You might suspect, that there’s a little bit more to it.
We will briefly walk through the whole process, so I recommend you to read through the official documentation on working with Geofences, if you want to understand them in more detail.
Let’s start with our use-case: We’re developing a to-do app (like everyone else — in my case it’s SwiftTask) and want to add location-based reminders to it. …