Image for post
Image for post

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. …

About

Sebastian Schäf

Android Developer ◦ Keeping it simple.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store