cllocationmanager

didEnterRegion is not Called but didExitRegion is Called in objective C

心不动则不痛 提交于 2019-12-23 05:10:26
问题 Hi everyone in my app i'm finding the iBeacons here the didExitRegion Method i called when i exit from the Region but the didEnterRegion method is not called when i entering the region.i fixed the background Refresh,remote notifications,location request always in info.plist here is my code - (void)viewDidLoad { [super viewDidLoad]; locManager=[[CLLocationManager alloc] init]; locManager.delegate=self; [self initRegion]; if([locManager respondsToSelector:@selector(requestAlwaysAuthorization)])

bluebar stays forever even if stopupdating is called in iOS 11

爷,独闯天下 提交于 2019-12-23 03:54:10
问题 I am accessing location services as 'always', i know all the changes made by apple in iOS 11. i updated my plist as required( added new key). I calling stopUpdatingLocation as soon as application goes to the background, but this blue still stays there saying your application is using location in the background. Top of that filled location icon in status bar changes to outlined location icon also. I am using Mapbox SDK as well. Is it a bug with iOS 11 or am i missing something? Just to give

CLLocationManager does not work for non-wireless connection?

前提是你 提交于 2019-12-23 03:54:09
问题 I have a Mac app and would like to use core location, however, when I am not on wifi but connected using an ethernet cable, core location (CLLocationManager) reports that the operation could not be completed. The exact error message is The operation couldn't be completed. (kCLErrorDomain error 0.) If I am always connected to the same router (ie. either wifi or ethernet cable) why does CLLocationManager only work for wifi and not for the ethernet connection? Any suggestions would greatly be

Mapbox iOS8 Swift mapView.showUsersLocation

a 夏天 提交于 2019-12-23 03:13:31
问题 Im trying using Mapbox iOS8 Swift cocoa plugin for mapbox and facing an issue when trying to show the users location on a mapView. My code is the following func mapView(mapView: MGLMapView!, symbolNameForAnnotation annotation: MGLAnnotation!) -> String! { return "secondary_marker" } let manager = CLLocationManager() override func viewDidLoad() { super.viewDidLoad() let mapView = MGLMapView(frame: view.bounds, accessToken: "pk.privateMapboxAccessTokenGoesHere") mapView.autoresizingMask =

Move and Rotate GMSMarker smoothly along last updated GPS coordinates Swift iOS

偶尔善良 提交于 2019-12-23 01:11:33
问题 I'm using GMSMapView . So I added custom GMSMarker and set the image(Ex. Bike image) and animating that marker when user starts moving and changing the angle of the marker in locationManager . Currently I'm just updating position attribute of GMSMarker. But it gives the GMSMarker jump effect. Instead of this I want to move and rotate the GMSMarker smoothly/properly into the GMSMapView. How can i achieve this in Swift? Thanks. (void)updateLocationoordinates(CLLocationCoordinate2D) coordinates

Location timestamp accuracy in ios

最后都变了- 提交于 2019-12-22 17:51:27
问题 After analysing location services in iOS 10, found that some inconsistency is in the caching behaviour. Fetching locations in a periodic time (in my case every 20 secs) returns locations but their timestamps are not in chronologically ordered. This indicates that the caching locations might have issues. So if you are checking accuracy through location-timestamp better to save the previous timestamps also. So that you could decide that the location fetched can be used or not. Below image is

custom Location Manager class using CLLocationManager

谁说我不能喝 提交于 2019-12-22 10:45:50
问题 I'm pretty new to iOS development (my first app) and I faced this issue. I have an iPhone app that should get user's current location in multiple ViewControllers upon user button touch. To prevent redundant code (implementing locationManager:didFailWithError , locationManager:didUpdateToLocation:fromLocation , etc. multiple times in different view controllers) I decided to create a custom class called LocationManager : LocationManager.h @interface LocationManager : NSObject

User's location and battery's consumption

允我心安 提交于 2019-12-22 09:29:15
问题 I am working on an iOS app that's focuses on pedestrians in a block of buildings (campus). I have developed a good enough (I believe) user's location update but, I would like anyone more expert than me to give me some tips, advices on accurate location, battery's issues etc. In addition, is it possible to stop the location update and start it again after n seconds? Is a thought that I did in order to save energy. As it is at the moment, app is detecting current location, but, blue dot (user)

didUpdateLocations never called

寵の児 提交于 2019-12-22 04:07:10
问题 I'm trying to get the user's location. To do so I have set the following property in the info.plist : I have also added the following code in my viewDidLoad method as well as the function below. The problem is that the locationManager(manager, didUpdate....) function never gets called, I also never get prompted for permission to access location, even though I have removed and installed the app again. I am testing this on my iPad, not on the simulator. The didFailWithError function never gets

didUpdateLocations never called

﹥>﹥吖頭↗ 提交于 2019-12-22 04:07:03
问题 I'm trying to get the user's location. To do so I have set the following property in the info.plist : I have also added the following code in my viewDidLoad method as well as the function below. The problem is that the locationManager(manager, didUpdate....) function never gets called, I also never get prompted for permission to access location, even though I have removed and installed the app again. I am testing this on my iPad, not on the simulator. The didFailWithError function never gets