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

Never get any coordinates #12

Open
ghost opened this issue Jan 13, 2015 · 7 comments
Open

Never get any coordinates #12

ghost opened this issue Jan 13, 2015 · 7 comments

Comments

@ghost
Copy link

ghost commented Jan 13, 2015

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.

@ghost ghost changed the title Never get any coordinate Never get any coordinates Jan 13, 2015
@victor
Copy link
Owner

victor commented Jan 13, 2015

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

Enviat des del meu iPhone

El 13/01/2015, a les 2:03, Flannelpunk [email protected] 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
Copy link
Author

ghost commented Jan 13, 2015

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 [email protected] 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 [email protected] 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
Copy link
Owner

victor commented Jan 13, 2015

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

@ghost
Copy link
Author

ghost commented Jan 13, 2015

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

On Jan 13, 2015, at 10:51 AM, Victor Jalencas [email protected] 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 #12 (comment).

@ghost
Copy link
Author

ghost commented Jan 13, 2015

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
Copy link
Owner

victor commented Jan 15, 2015

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
Copy link
Author

ghost commented Jan 15, 2015

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 [email protected] 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.

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

No branches or pull requests

1 participant