One of the unique features of mobile applications is location awareness. Mobile users take their devices with them everywhere, and adding location awareness to your app offers users a more contextual experience. The location APIs available in Google Play services facilitate adding location awareness to your app with automated location tracking, geofencing, and activity recognition.
To learn more about requesting access to location information in your app, see the following additional resources:
- LocationUpdatesForegroundService project on GitHub - An example of an app that allows the app to continue a user-initiated action without requesting all-the-time access to background location.
- LocationUpdatesPendingIntent project on GitHub - An example of an app that requests access to background location.