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

GeoClue2 only works after waiting 60 seconds #1

Open
lunarlattice0 opened this issue Aug 31, 2023 · 6 comments
Open

GeoClue2 only works after waiting 60 seconds #1

lunarlattice0 opened this issue Aug 31, 2023 · 6 comments

Comments

@lunarlattice0
Copy link

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".

@maltegrosse
Copy link
Owner

@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....

@lunarlattice0
Copy link
Author

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.

@maltegrosse
Copy link
Owner

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

@lunarlattice0
Copy link
Author

Sure, the code in question is here. The initial request and the request after 60 seconds is instantaneous.

@maltegrosse
Copy link
Owner

seems like u just run the example code twice?

@lunarlattice0
Copy link
Author

Yeah, but it doesn't work if I run the example code again within 60 seconds.

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