I have to execute Geofire.queryAtLocation() two times to get any response
Opened this issue · 4 comments
freddity commented
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
same problem here
technomusa commented
Same problem here also
jesussmile commented
yes same here, Geofire.setLocation
, Any fix guys ?
mikios34 commented
Same problem