Questions tagged [userlocation]
149 questions
4
votes
1 answer
How to getDistance from userLocation every 4-5 seconds
I'm not using this for driving directions or similar. I have a few annotations and want a trigger when user is in the vicinity of one of those, so I can alert the user.
It seems didUpdateToLocation is called only once per startUpdatingLocation call?…

Henrik Erlandsson
- 3,797
- 5
- 43
- 63
4
votes
3 answers
Customize user location tint on iOS
I'm trying to change the color of the user location, as it is done in the "find my friends" app by Apple (see attached screenshot).
Note that I'm using the MapBox SDK, and I currently have the following method:
- (RMMapLayer *)mapView:(RMMapView…

user2700551
- 339
- 2
- 6
- 24
4
votes
2 answers
Determine Country associated with Apple ID logged into the iOS device
I have a particular scenario in my application where some content (coming from service) needs to be displayed based on location or say country of the user.
There are two/three ways I figured out by which I could accomplish this but they have some…

Pranav Jaiswal
- 3,752
- 3
- 32
- 50
3
votes
1 answer
MKMapView Zooming In On User's Location Once But Not The Second Time in Tab-Bar App (iOS)
I have an MKMapView as part of a Navigation Controller in a Tab Bar based app.
I click a UIButton on the first View Controller and it pushes to the second View Controller which contains the MKMapView. When the Map View loads, it zooms in on the…

MillerMedia
- 3,651
- 17
- 71
- 150
3
votes
3 answers
Is there a way to subclass the MKAnnotationView used for the MKUserLocation blue dot?
I've created a custom annotation view by subclassing MKAnnotationView. This class also creates a custom callout (info pop-up 'bubble') view which is skinned to match my app.
I also want to be able to reskin the callout bubble for the user location…

jowie
- 8,028
- 8
- 55
- 94
3
votes
0 answers
React native maps showsMyLocationButton position
I am using Expo react-native-app. I have some local data which I want show in maps. For maps I have used React-native-maps. I successfully pull the data and display in maps by using Marker. For user location I have used expo-location and…

Krisna
- 2,854
- 2
- 24
- 66
3
votes
1 answer
iPhone how to tell application when iPhone screen sleeps
I'm making an iPhone application that uses the user location, however I've noticed that when the iPhone screen sleeps/turns off, the phone is still using user location. So is there a function that can tell me when the screen sleeps so i can…

thechengster
- 133
- 1
- 10
3
votes
3 answers
How to track user location in the background swift
I am trying to track the user location in background I have try using when In us with and without always , but every time I minimise the app the location icon disappear I have read in a tutorial it should show blue bar but I am not getting that…

Nouf
- 733
- 1
- 11
- 32
3
votes
1 answer
How to set Mapkit user tracking button state
I've created a map with a user tracking button on the top right corner. I was wondering how I would be able to set the state to "followWithHeadlights" by default on load so that it follows the users current position just like you would have on…

Alan Lau
- 115
- 9
3
votes
1 answer
Beacons and User Location permission
I just finished developing an app that interacts with the Beacons and User location.
I ask for locationManager the requestAlwaysAuthorization permission and I have added in the plist NSLocationAlwaysUsageDescription property with my description;…

weso
- 189
- 3
- 14
3
votes
1 answer
[iOS]capturing user location: clarification
I've an app that capture user location and send this info to my server.
I've started the LocationManager service with:
- (CLLocationManager *)locationManager {
if (_locationManager == nil) {
_locationManager = [[CLLocationManager alloc]…

CeccoCQ
- 3,746
- 12
- 50
- 81
3
votes
0 answers
how to prevent twice Google maps v 3.0 user permission alert in phone-Gap?
I'm using Google map API 3.0 in my site,i build my site with PhoneGap ,twice user permission alert appeared.
How to prevent these alerts ?

Ismail Ali
- 111
- 8
3
votes
3 answers
MapKit Terminating app due to uncaught exception Invalid Region
I set the mapView.delegate, etc.
Everything is ok but when I leave and few minutes after I resume my app, it quits.
The console gives me this but I haven't been able to fix it:
Terminating app due to uncaught exception…

james075
- 1,280
- 1
- 12
- 22
2
votes
2 answers
Get the accuracy of an MKMapView Location
I was wondering if there's a way to obtain the accuracy of a received location from an MKMapView.
I would have thought the following code would work but it doesn't. Can I log the property directly as well?
- (void)mapView:(MKMapView *)mapView…

user1168056
- 401
- 8
- 19
2
votes
2 answers
iOS MapKit userLocation returning zero on first call, but
I have a curious issue that I can't explain and was wondering if anybody has encountered the same problem.
I have a MKMapView that displays the user's current location, and is written to center the region over that location when loaded. When I load…

Chris
- 803
- 2
- 9
- 22