mrdishant/flutter_geofire

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

Opened this issue · 4 comments

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

same problem here

Same problem here also

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

Same problem