core-location

Does the internal GPS antenas stop working immediately after calling CLLocationManager stopUpdatingLocation

╄→尐↘猪︶ㄣ 提交于 2019-12-31 07:25:12
问题 Here is my scenario. In my app there is no need of continuously monitoring user location, but I need the location to be as accurate as possible. So I just call CLLocationManager startUpdatingLocation with kCLLocationAccuracyBestForNavigation set as desiredAccuracy, and after I get the location with my desired accuracy (by comparing newLocation.horizontalAccuracy with predefined value) I want to stop the location update and revoke update again after several seconds. But when I call

How do I debug an iPhone app that's supposed to be launched by location services, into the background, from a terminated state?

佐手、 提交于 2019-12-30 01:47:09
问题 We're told, via Apple's docs on startMonitoringSignificantLocationChanges that the following behavior can be expected by an application using the signification change API: If you start this service and your application is subsequently terminated, the system automatically relaunches the application into the background if a new event arrives. In such a case, the options dictionary passed to the locationManager:didUpdateLocations: method of your application delegate contains the key

Is using Core Location for performing functionality in the background appropriate?

拈花ヽ惹草 提交于 2019-12-29 09:25:10
问题 Lately, I've notice that there are a few applications request to access the user's location for performing some functionalities in the background. For example : Application for scanning and uploading the user's photos for backup purposes, so when entering the background state, it keeps scanning and uploading. What am I asking: If there are Background Execution mechanisms for executing Background Tasks (Select Target -> Capabilities -> Background Modes), so why using the Core Location for

MyApp “has active assertions beyond permitted time” crash - CoreLocationRegistration and CoreLocationBackgroundClient

送分小仙女□ 提交于 2019-12-29 07:36:50
问题 Does anyone have any insight on why this crash log is happening? The app records the locations where the user goes. So it has the UIBackgroundModes's Location is set in Info.plist to continue getting location updates in background. According to the log, something seems to crash after 10 minutes. Incident Identifier: 4BA294E8-0DDF-4EC2-812A-20394F758A7F CrashReporter Key: 59997a4e160853691bc673802439c8c4b9ca7ba3 Hardware Model: iPhone3,1 Process: MyMapApp [1234] Path: /var/mobile/Applications

How can I disable any CLRegion objects registered with -startMonitoringForRegion?

允我心安 提交于 2019-12-29 04:31:07
问题 I am using a NavigationController to display a list of geo-fences available to the user. At the top there is a global on/off switch that I would like to use to disable any fences registered with CoreLocation -startMonitoringForRegion. My fences seem to be registering ok and working for the most part, but no matter how many times I disable the fences individually, I'm still getting the purple location arrow indicating that the system is still monitoring my location and/or fences. When I

didUpdateLocations instead of didUpdateToLocation

强颜欢笑 提交于 2019-12-28 03:31:10
问题 With the release of iOS6 Apple wants us to use didUpdateLocations instead of didUpdateToLocation. Can anyone explain how to properly use didUpdateLocations? 回答1: I asume you used the following delegate to get the last position? - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation The delegate above is deprecated in iOS 6. Now the following should be used: - (void)locationManager:(CLLocationManager *)manager

CoreMotion updates in background state

南笙酒味 提交于 2019-12-28 03:20:30
问题 With the M7 chip in the latest iOS devices one can get programmatically notified as the user goes from stationary to running, walking, etc using CMMotionActivityManager. Stava and Runkeeper have both used this to auto-pause GPS polling (shut off the GPS antenna) when it detects the user isn't moving via the M7, and then re-enable GPS updates once they are moving again. It is able to do this while the app is in the background state, which is the key here. The issue I run into while duplicating

iOS monitor user location in background.

孤街浪徒 提交于 2019-12-25 18:23:52
问题 I have read a number of posts here that it is possible to get location updates while the application is in the background. My question is what to what extent can I do computing in the background and would I handle it as I would any other code, i.e. just a method call, etc. Thanks a lot. 回答1: It is possible, yes. You set the 'location' UIBackgroundModes flag in your Info.plist and then call the Location Manager. See App States and Multitasking You can do computing while your application is

how to get current location inside a building iphone

做~自己de王妃 提交于 2019-12-25 17:03:29
问题 How is it possible to obtain the current location inside a building. I want to develop an application similar to this http://matadornetwork.com/goods/point-inside-indoor-map-application-for-the-iphone-and-android/ (on a smaller/less complicated scale) and wondering on the approach i should take. Are there any tutorials/examples/articles that would point me in the right direction? Thanks ... 回答1: Indoor Navigation System for Handheld Devices shows up a few possibilities how indoor navigation

When close view that started locations service notification error occure

情到浓时终转凉″ 提交于 2019-12-25 16:50:05
问题 I have created small app that use this project as it's core: https://github.com/dsdavids/TTLocationHandler And it worked fine until I have moved stating location services from another view in app. What app is doing: When it is started you can tap on START button and ( in emulator locations must be enabled ) on the map route of movement is displayed as you move. The problem came when I moved starting action in a second view. In that second view I just want to start location service and close