core-location

How to get info if I am in village or out of the village (city)? (iOS geocoder or Overpass API for OSM) [closed]

大城市里の小女人 提交于 2019-12-13 08:25:53
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . Is there any way to find out if I am within village/city or out the village/city using iOS SDK (geocoder information) or Overpass API

ios Location Background Mode : Update location upto 18 mins only

陌路散爱 提交于 2019-12-13 07:15:08
问题 I have enabled Location background mode and added NSLocationAlwaysUsageDescription . After calling [locationManger startUpdatingLocation]; After placing the application in background (by tapping home button), i can see location-services indicator been added to status bar. After around 18 mins, the location-services indicator went away and app doesn't get any gps points. NOTE: requestAlwaysAuthorization is in place and granted. 回答1: Hi Vinay: App will move on suspended mode that's why you'll

Core Location with Xcode 6 simulator

狂风中的少年 提交于 2019-12-13 05:15:40
问题 Core Location is not calling didUpdateLocations . I have 2 classes involved LocationManager and a View Controller. Plist is set for requestAlwaysAuthorization . Location is simulated in debug. Can anyone help me spot the error? LocationManager.h @interface LPLocationManager : NSObject <CLLocationManagerDelegate> +(LPLocationManager*)sharedManager; @property (strong, atomic) CLLocationManager *locationManager; @property (nonatomic, retain) CLLocation *location; @end LocationManager.m +

Region Monitoring issues in IOS

守給你的承諾、 提交于 2019-12-13 04:23:40
问题 I am developing region monitoring from 4-5 months, and it was working fine before. Before a week or ago when we tested the code on device having IOS 7.1, we found an issue: when one registered region is detected, it never getting detected again until user move far from this region by distance 10Km, if user never crosses this range of 10Km, no Enter/Exit events will be called for that region. If user travels far distance 10 Km from the detected region, its Exit event will be called, and when

NSTimer in background mode using locationManager delegate (“Cheat way”) SWIFT

倾然丶 夕夏残阳落幕 提交于 2019-12-13 03:37:15
问题 I have a function that I want to run in the app background mode and be executed at least every minute to check for wifi connection and to make decisions. I am using locationManager delegate so I can run my NSTimer in the background. However the location manager is consuming a lot of battery power. This app is not for apple release. However I am looking for more efficient settings for location manager so it will not be that power hungry or maybe any other good ideas?. The current settings that

How to zoom into user current location?

喜夏-厌秋 提交于 2019-12-13 02:55:25
问题 I wanna zoom into the user current location when the app starts in the MapKit. This is my code (in the viewDidLoad function): Locate=[[CLLocationManager alloc]init]; Locate.delegate=self; Locate.desiredAccuracy=kCLLocationAccuracyBestForNavigation; Locate.distanceFilter=kCLDistanceFilterNone; [Locate startUpdatingLocation]; [super viewDidLoad]; //Region MKCoordinateRegion myRegion; //Center CLLocationCoordinate2D center; center.latitude=Locate.location.coordinate.latitude; center.longitude

prevent ios simulator from asking “x Would like to use your current location”

痴心易碎 提交于 2019-12-13 01:41:45
问题 We are running a test automation suite and would like to prevent this message from appearing when using the iOS Simulator. Can anyone come up with a hack to automatically enable this when deploying a new app to the simulator? 回答1: do not put the if([CLLocationMannager isLocationServicesEnabled]) check before u start the CLLocationManager . This boolean implicitly calls the Alert before the App starts finding the user location. Also, the macros- #if TARGET_IPHONE_SIMULATOR code..without the if

CoreLocation AttributeError

时间秒杀一切 提交于 2019-12-13 01:33:36
问题 I am trying to find my Mac's current location using the following python script. It is using the python objective-C bridge and it works sometimes. However sometimes I am getting the following AttributeError and I'm unsure what I should do to fix the error. #!/usr/bin/python # encoding: utf-8 import CoreLocation manager = CoreLocation.CLLocationManager.alloc().init() manager.delegate() manager.startUpdatingLocation() coord = manager.location().coordinate() lat, lon = coord.latitude, coord

Using freeway drive/ city run in iOS simulator in background mode

喜你入骨 提交于 2019-12-12 23:55:14
问题 I am trying to make use of the options within iOS simulator : debug->freeway drive/ city run in order to simulate the location updates. In my code I am using CLLocationManager for getting location updates with following code: - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. locationManager = [[CLLocationManager alloc] init]; locationManager.delegate = self; [locationManager setDesiredAccuracy

iOS app crashing in Core Location callback machinery

好久不见. 提交于 2019-12-12 18:08:26
问题 I have problems analyzing my crashlog. The iPhone crashes sometimes, when I click on the app icon to start the app. The app is already "running" in background, but it's not active. This is the symbolized crash log: Thread 0 Crashed: 0 libobjc.A.dylib 0x33479470 objc_msgSend + 28 1 CoreLocation 0x3436f68e -[CLLocationManager onClientEvent:supportInfo:] + 98 2 CoreLocation 0x3436f804 OnClientEvent + 16 3 CoreLocation 0x3436b522 CLClientInvokeCallback(__CLClient*, CLClientEvent, __CFDictionary