-
Notifications
You must be signed in to change notification settings - Fork 1
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
GeoClue2 only works after waiting 60 seconds #1
Comments
@Thelolguy1 I havent played around with geoclue2 since then - but is geoclue running before? also manager and client should somehow run forever, and only if u need the location in your application, you should ask the running client.... |
Yes, geoclue is running. If I try to get the location in between the 60 seconds, a new client appears momentarily before disappearing. In my situation, the user may close the program in between the 60 seconds meaning location cannot be acquired in that gap. |
does the initial request takes 60 seconds? once the 60 seconds passed, can you request the location with less time passed by? please share some code snippets |
Sure, the code in question is here. The initial request and the request after 60 seconds is instantaneous. |
seems like u just run the example code twice? |
Yeah, but it doesn't work if I run the example code again within 60 seconds. |
I am aware that this library hasn't been updated for quite some time, but I am having some trouble with it. If try to get the location (as seen in the example), wait 60 seconds, then try again, GeoClue2 functions as normal.
However, if I attempt to get the location faster than that, the library errors with "timed out gathering location object".
The text was updated successfully, but these errors were encountered: