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

I have to execute Geofire.queryAtLocation() two times to get any response #31

Open
freddity opened this issue Jan 3, 2022 · 4 comments

Comments

@freddity
Copy link

freddity commented Jan 3, 2022

I the shortest way.
This:

Geofire.queryAtLocation(position.x, position.y, 8587)!.listen((event) { });
Geofire.queryAtLocation(position.x, position.y, 8587)!.listen((map) { 
    print('results: ${map['key']}');
});

Produces the undermentioned output:

I/TAG     (23346): GeoFire.start
I/TAG     (23346): queryAtLocation
I/TAG     (23346): queryAtLocation
I/flutter (23346): results: null
I/flutter (23346): results: uid not ni
I/flutter (23346): results: null
I/flutter (23346): results: uid not ni
I/flutter (23346): results: null

And this:

Geofire.queryAtLocation(position.x, position.y, 8587)!.listen((map) { 
    print('results: ${map['key']}');
});

Produces the undermentioned output:

I/TAG     (23346): GeoFire.start
I/TAG     (23346): queryAtLocation

So what's wrong? I really don't understand. Can you help me or fix the code? Thank you so much

@KamiTzayig
Copy link

same problem here

@technomusa
Copy link

Same problem here also

@jesussmile
Copy link

yes same here, Geofire.setLocation , Any fix guys ?

@mikios34
Copy link

Same problem

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

5 participants