victor / whereami

get your location from the command line
http://victor.github.io/whereami/
MIT License
213 stars 24 forks source link

Never get any coordinates #12

Open ghost opened 9 years ago

ghost commented 9 years ago

The app times out without getting coordinates. Get this error instead: "Could not get a proper location fix in 15 seconds. Try again perhaps?"

This is on a Mac running Yosemite (10.10.1). Other implementations of CoreLocation have worked on this hardware, location, and network -- though this is on a clean install of 10.10.

I suspect that privacy settings might be blocking it, but it doesn't show up in System Preferences.

victor commented 9 years ago

Is wifi enabled? What happens if you open Maps first?

Enviat des del meu iPhone

El 13/01/2015, a les 2:03, Flannelpunk notifications@github.com va escriure:

Get this error instead: "Could not get a proper location fix in 15 seconds. Try again perhaps?"

This is on a Mac running Yosemite (10.10.1). Other implementations of CoreLocation have worked on this hardware, location, and network -- though this is on a clean install of 10.10.

I suspect that privacy settings might be blocking it, but it doesn't show up in System Preferences.

— Reply to this email directly or view it on GitHub.

ghost commented 9 years ago

Wi-Fi is enabled. I will try opening Maps and get back to you on that when I'm at my computer again.

On Jan 13, 2015, at 2:14 AM, Victor Jalencas notifications@github.com wrote:

Is wifi enabled? What happens if you open Maps first?

Enviat des del meu iPhone

El 13/01/2015, a les 2:03, Flannelpunk notifications@github.com va escriure:

Get this error instead: "Could not get a proper location fix in 15 seconds. Try again perhaps?"

This is on a Mac running Yosemite (10.10.1). Other implementations of CoreLocation have worked on this hardware, location, and network -- though this is on a clean install of 10.10.

I suspect that privacy settings might be blocking it, but it doesn't show up in System Preferences.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub.

victor commented 9 years ago

Can you confirm that it does not appear in the security preference pane, under the Privacy tab, in Location Services?

ghost commented 9 years ago

Correct. It does not. Even after running, or while running.

On Jan 13, 2015, at 10:51 AM, Victor Jalencas notifications@github.com wrote:

Can you confirm that it does not appear in the security preference pane, under the Privacy tab, in Location Services?

— Reply to this email directly or view it on GitHub https://github.com/victor/whereami/issues/12#issuecomment-69765589.

ghost commented 9 years ago

I finally got a chance to try running it with Maps open and enabled in Privacy & Security settings. If I unlock the settings, have maps running, and then run whereami, it asks and I can add to apps allowed to access location.

[EDIT]: it is now working without Maps running. Will permission for Maps always be required in order to run it?

victor commented 9 years ago

I don't expect it, but then I didn't expect your problem in the first place. I wanted you to run Maps so that the system had some known-to-work app to get a location fix and have it be cached, and unblock it in some way. Now that you have been asked for permission, you should not need to be asked again, in theory. I had some cases while developing the app in which the system would not ask me for permission again after making some changes (my feeling is that it was too soon after the previous build, and therefore the timestamp was within the same minute) but since the app signature would have changed, it would not be granted permission and nothing would happen.

Please test again in a few days and if you have no further problems, I think we can consider this issue resolved.

ghost commented 9 years ago

Okay. It does work without Maps running. By the way, other apps had permission to use location services and location services were turned on in System Preferences the entire time.

I'll also try it with Maps blocked later. Yesterday, in coding a script of my own that relies on whereami, I turned location preferences off and on a bunch of times. whereami kept working as usual. Once in a while it would time out repeatedly.

On Jan 15, 2015, at 4:10 AM, Victor Jalencas notifications@github.com wrote:

I don't expect it, but then I didn't expect your problem in the first place. I wanted you to run Maps so that the system had some known-to-work app to get a location fix and have it be cached, and unblock it in some way. Now that you have been asked for permission, you should not need to be asked again, in theory. I had some cases while developing the app in which the system would not ask me for permission again after making some changes (my feeling is that it was too soon after the previous build, and therefore the timestamp was within the same minute) but since the app signature would have changed, it would not be granted permission and nothing would happen.

Please test again in a few days and if you have no further problems, I think we can consider this issue resolved.

— Reply to this email directly or view it on GitHub.