mrdishant / flutter_geofire

A Flutter plugin to get the realtime updates of places nearby usinf Firebase GeoFire.
MIT License
23 stars 28 forks source link

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

Open freddity opened 2 years ago

freddity commented 2 years ago

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 commented 2 years ago

same problem here

technomusa commented 2 years ago

Same problem here also

jesussmile commented 2 years ago

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

mikios34 commented 2 years ago

Same problem