...

/

Fetching User’s Last Known Location

Fetching User’s Last Known Location

Learn how to use runtime permissions to access the user’s last known location.

For this lesson, let’s assume that the user’s location access falls under dangerous permissions. The app needs to request location permissions before explicitly accessing the GPS location.

Let’s learn how to fetch the device’s last known location using the LocationServices API.

Access this course and 1400+ top-rated courses and projects.