Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocationOperation issue with CLLocationAccuracy constants #84

Open
sirnacnud opened this issue Nov 24, 2016 · 1 comment
Open

LocationOperation issue with CLLocationAccuracy constants #84

sirnacnud opened this issue Nov 24, 2016 · 1 comment

Comments

@sirnacnud
Copy link

If you create a LocationOperation with accuracy set to kCLLocationAccuracyBestForNavigation, the location handler won't be called, as in didUpdateLocations, the horizontal accuracy of the current location is compared to the accuracy the user specified. The problem is that kCLLocationAccuracyBestForNavigation is defined as -2, so the only time the current location will have a negative horizontal accuracy is if it is invalid.

I'm not for sure if supplying kCLLocationAccuracyBestForNavigation, or any of the other constants that have a negative value, should be supported. It seems Apple's original code sample has this same issue.

@mcmurrym
Copy link
Contributor

I'm open to solutions but am not an expert in this. If you feel you have an appropriate solution feel free to submit a pull request. Tests around this would be great too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants