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.
Get hands-on with 1200+ tech skills courses.