Question

I am developing an app where I require to alert user if he move more than 20 meters from his checking location. I am planning to use proximity sensor for this development. However I found this document.

http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/LocationAwarenessPG/CoreLocation/CoreLocation.html

It says

"The specific threshold distances are determined by the hardware and the location technologies that are currently available. For example, if Wi-Fi is disabled, region monitoring is significantly less accurate. However, for testing purposes, you can assume that the minimum distance is approximately 200 meters."

If I use GPS distance it will take considerable power utilization. Am I developing on wrong path? Appriciate your kind sugesstions.

Was it helpful?

Solution

For your task the only way is using GPS in best quality mode (CLLocationAcuracyBest).
Check loaction.getAcuracy() to see if the location came from GPS or cell Tower/wifi.

OTHER TIPS

Hi You can use GPS based on your needs. It will surely take some more power consumption but works with more accurately.Please be more specific how many times you need this function within app.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top