Location Services allows location-based apps and websites (including Maps, Camera, Safari, and other Apple and third-party apps) to use information from cellular, Wi-Fi, Global Positioning System (GPS) networks, and iBeacons to determine your approximate location.
Questions tagged [location-services]
268 questions
95
votes
8 answers
Location Services not working in iOS 11
I just rebuilt my app with the iOS 11 SDK in an attempt to remove the blue banner that is now always appearing. I thought - "Brilliant, that worked", only to discover that location services are now not working at all.
The application used to work…

William George
- 6,735
- 3
- 31
- 39
62
votes
7 answers
How to enable Location access programmatically in android?
I am working on map related android application and I need to check location access enable or not in client side development if location services is not enable show the dialog prompt.
How to enable "Location access" Programmatically in android?

NarasimhaKolla
- 791
- 3
- 7
- 14
60
votes
12 answers
How to open Location services screen from setting screen?
I want to open location service screen programmatically to turn on service.

Monika Patel
- 2,287
- 3
- 20
- 45
30
votes
4 answers
Fused Location Provider unexpected behavior
this is how I register my app to receive location updates:
mLocationRequest = LocationRequest.create();
mLocationRequest.setInterval(Consts.ONE_MINUTE *…

Tal Kanel
- 10,475
- 10
- 60
- 98
25
votes
2 answers
cannot resolve symbol 'LocationServices'
I am trying to build an android app using android studio that uses the userlocation. I am trying to import the google play services LocationServices api, but it says it can't resolve symbol 'LocationServices'. I tried searching for an answer but I…

Jord Adema
- 271
- 1
- 3
- 9
16
votes
2 answers
Enable GPS programmatically Android (without navigating to the location settings)
How to enable GPS programmatically, as it does happen in the official Google Maps app by just clicking on the 'turn on' option on the pop up screen (without navigating to location settings)?

LEE
- 3,335
- 8
- 40
- 70
14
votes
4 answers
CLLocationManager is slow getting location, Swift
Im creating this app, and it needs to get the users location - its all working properly, the thing is, that the time from accepting the use of location services, to getting the actual location takes like 5 seconds - is this normal?
I've used other…

Nicolai Harbo
- 1,064
- 12
- 25
13
votes
4 answers
How to get current location on flutter sdk 1.2.1
How can i get current location on android device using flutter. I have tried both Location and GeoLocator plugins the GeoLocator 3.0.0 shows this error on debuging:
Launching lib\main.dart on Android SDK built for x86 in debug mode...
FAILURE:…

Mateen Kiani
- 2,869
- 2
- 19
- 29
13
votes
4 answers
Android: Google Maps location with low battery usage
My app is currently using Maps by Google Play Services
speficying:
mMap.setMyLocationEnabled(true);
I realize each time I am displaying the map in my app:
the location is indicated on the map by a blue dot
a location icon is displaying in the top…

Daniele B
- 19,801
- 29
- 115
- 173
12
votes
4 answers
Enable location services for Android if user chose Never option
Is there any way to allow location services again for an app (or at least show the dialog) if the user previously chose the option Never?
I dont find any way in code to show it again, since i always get…

nsL
- 3,722
- 3
- 23
- 40
10
votes
1 answer
How to show the Google Location Services permission request dialog above / through the lockscreen?
I'm trying to show the Google Location Services (turn on GPS, network data, etc.) Dialog through lock screen.
I'm using KeyguardManager to disable Lock screen. This works fine as my MainActivity is able to disable the lock screen. However, as soon…

Dante
- 465
- 2
- 12
9
votes
2 answers
ios12 background location service stopping
I have an app which continually tracks the device location in background.
This worked pretty well in ios 11.4 where I could let run the app in background for days while still doing other stuff in foreground.
Now with ios 12 the app does stop running…

Michael Konz
- 503
- 1
- 3
- 20
9
votes
4 answers
startMonitoringSignificantLocationChanges not working in swift
I'd added CLLocationManager in my app using Swift in the AppDelegate file.
In the Appdelegate.swift file,
import CoreLocation
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate, CLLocationManagerDelegate {
var locationManager:…

Nazik
- 8,696
- 27
- 77
- 123
9
votes
1 answer
Updating locations while app in background working on simulator but not on device (iOS 9)
I have enabled Background Modes > Location updates in my target's capabilites. I run the app in an iOS 9 simulator, I put the app in background state with Location > City run in the simulator, and it seems to keep getting location updates. But I run…

AppsDev
- 12,319
- 23
- 93
- 186
9
votes
2 answers
CLLocationManager running in background & power saving
I am working on an iOS tracer. It must run and receive locations even if the app is not in foreground, i.e. I use the background mode "Location updates". However, it would be fine to safe battery if possible. Especially, there is no need to receive…

Cimlman
- 3,404
- 5
- 25
- 35