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
3
votes
1 answer
getLastLocation() always null in GoogleApiClient
Am trying to build an application that requests the current location using the GoogleClientApi and LocationServices, but the Location is always null even that I enabled the WiFi,Mobile Data and GPS , tested it on several devices all the same
the…

3ammari
- 144
- 2
- 10
3
votes
1 answer
NSBluetoothPeripheralUsageDescription isn't being used
I've set the value NSBluetoothPeripheralUsageDescription in my .plist file to add a customized message to the bluetooth enabled alert message. But its not being used, I just see the standard 'Turn on bluetooth to allow...' However the…

Jiebe
- 337
- 1
- 4
- 10
2
votes
1 answer
Are there any chances that expo-location's getCurrentPositionAsync() can return cached location?
I am using getCurrentPositionAsync() form expo-location to get user current location.
Requests for one-time delivery of the user’s current location.
Depending on given accuracy option it may take some time to resolve,
especially when you’re inside…

ThinkAndCode
- 1,319
- 3
- 29
- 60
2
votes
1 answer
PeriodicWorkRequest calls single time only in android
I am working on background location service for which I am using PeriodicWorker. For this I am setting 1 Minute interval. I want my service to trigger after every 1 minute, but currently it is calling one time only.
What I want is to call this…

Usman Khan
- 3,739
- 6
- 41
- 89
2
votes
3 answers
React Native Expo - Localization
Im using expo-localization. When I try to submit the app to the google play store, it says that the app uses location service. Is there a way for the app not to use the location service as Im only getting the timezone form it. The timezone is used…

Aakash Rathee
- 523
- 3
- 17
2
votes
1 answer
Android periodic location locationRequest.interval not working
TL;DR :
Android requestLocationUpdates() has locationRequest.interval = 10000 which does not happen, is something wrong?
In Details:
Successfully implemented Android period location and it works fine, using this reference…

Saswata
- 1,290
- 2
- 14
- 28
2
votes
1 answer
How to turn off TwilightManager logging
I'm working on an Android app that does not need location services, and I don't want to add that permission.
While I'm testing on my physical device (Moto G5 Plus with Android 8.1.0), I see in Logcat the following repeated ad nauseam:…

Dale
- 5,520
- 4
- 43
- 79
2
votes
2 answers
Attempting to retrieve location on Android Device... works on emulator but not real device
My issue: I am attempting to create an app that can be used university wide. It requires constant access to location. I followed a tutorial online and completed the code underneath. This code works perfectly for my android emulator, but does not…

Dylan Woodworth
- 35
- 6
2
votes
3 answers
Open location settings not working in iOS 11
I'm using this code to redirect to iOS settings for the location:
NSURL *url = [NSURL URLWithString:@"App-Prefs:root=LOCATION_SERVICES"];
if ([[UIApplication sharedApplication] canOpenURL:url]) {
[[UIApplication sharedApplication] openURL:url…

EgzonArifi
- 830
- 1
- 11
- 23
2
votes
1 answer
Background location service is not working in oppo and MI phones
In my android application,location service is implemented as background service.I have tested it with different phones(like samsung,micromax,Moto,lenovo,nexus) it works fine with all.But when i run in Oppo (colorOS) and MI (MIUI OS),my service is…

Akshay Chache
- 21
- 6
2
votes
1 answer
Is it possible to get a list of places near a Lat/Long using MapKit?
I'm trying to build a simple location search that returns a list of places near the user. So for example, using current location, or a given Latitude and Longitude I want to list out all place names, businesses, towns, etc. within a certain radius.…

Arel
- 3,888
- 6
- 37
- 91
2
votes
1 answer
Get location instantly after enabling location services
Is there any way that I can get location (latitude and longitude) immediately after the user has enabled location services? With the code I have now when the user enables the location services the first time I get 0.0 for latitude and longitude and…

Marija Lyka
- 163
- 3
- 17
2
votes
1 answer
CLLocationManager.authorizationStatus results in EXC_BAD_ACCESS code=2
My very first app is working fine so far, if location services are allowed for it.
As soon as I disable the location services for this app in particular (Airplane mode, as well as generally disabled location services are working as expected).
The…

Michael
- 289
- 2
- 5
- 14
2
votes
1 answer
Android app missing status bar icon when accessing location services
Ok this is a weird one but I maybe missing something that is obvious. I am currently accessing the user location using this function:
public String[] getGeoCoords() {
String[] geoCoords = new String[2];
String mprovider =…

MarkDev
- 23
- 3
2
votes
0 answers
Why doesn't work Wi-fi scanning in the background without location service on android 6.0?
My question is very simple.
when device OS was Lolipop or kitkat or jellybean, i could get Wi-fi scan result in background without Location service well.(it means Location service turn off)
after OS upgrade to 6.0 Mashmallow, it doesn't work.
if i…

Renny
- 69
- 5