cllocationmanager

Location Services not working in iOS 6 [duplicate]

╄→尐↘猪︶ㄣ 提交于 2019-12-19 10:27:38
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: iOS 6 and Location Services not working Our app's location services have stopped functioning in iOS 6. They work fine in iOS 5. When I call CLLocationManager's startUpdatingLocation method it never prompts the user for access and our app doesn't show up in the Settings Location Services page. Anyone seen this before? I really have no idea where to look. I have tried stripping down our app to just a single view

didUpdateLocation Method Never Called

被刻印的时光 ゝ 提交于 2019-12-19 02:37:12
问题 I am making one app on iphone sdk4.0.In that did update location method never called. I have given my code below.Please help.Thanks in advance. -(id)init { [super init]; obj=[[UIApplication sharedApplication]delegate]; locationManager = [[CLLocationManager alloc] init]; locationManager.delegate = self; //locationManager.distanceFilter = kCLDistanceFilterNone; // whenever we move locationManager.desiredAccuracy = kCLLocationAccuracyHundredMeters; // 100 m [locationManager startUpdatingLocation

iBeacon Reliable/Unreliable

a 夏天 提交于 2019-12-18 18:23:12
问题 I am working on my home automation app. I am using estimotes iBeacons and what I want to do is give my Home Automation Control the ability to know my proximity in my home. Each iBeacon is given a virtual switch on my Home Controller and when I come in contact with a iBeacon my device either in foreground or background will update my control to turn on my switch for when I am near a beacon and turn it off when I have wondered away from my beacon. All of this works perfectly and I am loving it,

How to get current location latitude and longitude in IOS SDK 8.0

丶灬走出姿态 提交于 2019-12-18 15:54:36
问题 how to get current location latitude and longitude. I have try this. Using Xcode 6.01 and IOS SDK 8.0 -(CLLocationCoordinate2D) getLocation{ locationManager = [[CLLocationManager alloc] init]; locationManager.delegate = self; locationManager.desiredAccuracy = kCLLocationAccuracyBest; locationManager.distanceFilter = kCLDistanceFilterNone; [locationManager startUpdatingLocation]; CLLocation *location = [locationManager location]; CLLocationCoordinate2D coordinate = [location coordinate];

If background applications can't launch automatically how does Cardcase launch on a location change?

依然范特西╮ 提交于 2019-12-18 13:48:08
问题 The Cardcase application lets you know if you approach a shop which you have a previous relationship with (if you've set up a tab for payments there etc.). If background running applications cannot be started automatically on device boot, how does this app therefore work? Edited to make my question clearer: I am not asking how to monitor for location changes or how to monitor for location changes in the background. My question is, if the user install this app, then adds some tabs for some

iphone Location Services code that works on OS 4.1 in appstore

元气小坏坏 提交于 2019-12-18 13:36:52
问题 There's a bug in OS 4.1 that has broken location services for some iPhone apps ( https://devforums.apple.com/message/306250 ). Basically location services fails to turn on, and doesn't even ask the user for permission to get their location. The worst thing about the bug is that it doesn't occur when you're installing the app to a device from XCode, it occurs you when you're downloading from the App Store! This makes it almost impossible to test for a fix. Not everyone's app has been affected,

Checking for iOS Location Services

泪湿孤枕 提交于 2019-12-18 10:14:08
问题 I have a view with a map and a button (like the Maps app once) that allows the user to center and zoom his current location on the map. If I can not use the locationServicesEnabled method (always returns YES), should I create a BOOL attribute to check if the didFailWithError method is called and know if I can call the button method? Thanks for reading. Edited: This code does not work for me. I am using the simulator. I am always getting YES when asking locationServicesEnabled. // Gets the

CLLocationCoordinate2D to CLLocation

假如想象 提交于 2019-12-18 04:29:17
问题 i have the following loop in my viewDidLoad: for(int i=1; i<[eventsArray count]; i++) { NSArray *componentsArray = [[eventsArray objectAtIndex:i] componentsSeparatedByString:@","]; if([componentsArray count] >=6) { Koordinate *coord = [[Koordinate alloc] init]; coord.latitude = [[componentsArray objectAtIndex:0] floatValue]; coord.longtitude = [[componentsArray objectAtIndex:1] floatValue]; coord.magnitude = [[componentsArray objectAtIndex:2] floatValue]; coord.depth = [[componentsArray

Store CLLocationCoordinate2D to NSUserDefaults

喜欢而已 提交于 2019-12-18 04:14:11
问题 I am new to iphone development, and i want to store CLLocationCoordinate2D object to NSUserDefaults . I am Trying [defaults setObject:location forKey:@"userLocation"]; But it gives error 'Sending CLLocationCoordinate2D to parameter of incompatible type id' So How to store CLLocationCoordinate2D into NSUserDefaults ? Thanks. 回答1: As pdrcabrod said, "A default object must be a property list, that is, an instance of NSData , NSString , NSNumber , NSDate , NSArray , or NSDictionary ." I use this

Background user location when app is terminated/suspended

爱⌒轻易说出口 提交于 2019-12-17 18:26:46
问题 I've been trying to figure out how to get the user's location when the app is terminated like how the app Moves does it. The only way I know of doing so is with Significant Location Changes. However with significant location changes, the app only gets woken up either every 500 meters and only if it has been around 5 minutes past the last update. According to Apple: Apps can expect a notification as soon as the device moves 500 meters or more from its previous notification. It should not