google-developer-training / advanced-android-kotlin-geo-fences

Other
32 stars 78 forks source link

Geofencing - Final code

Solution code for Advanced Android with Kotlin Codelab

Introduction

A geofence is a virtual perimeter defined by GPS or RFID around a real world area. Geofences can be created with a radius around a point location.

Geofencing has a lot of applications including:

Pre-requisites

Getting Started

  1. Download and run the app.
  2. If you are running API 29 or higher, grant the "Always allow" permission; otherwisa, grant "Allow" for location permissions.

Note: If you are running this app on an emulator, you will need to use another app to pull location data from. This is because geofencing relies on device sensors to detect the location of the device, which the emulator cannot access.