Open luislukas opened 4 years ago
I dong get any results with query. Is it still working for u ?
Yes, just checked and it still works for me.
Thanks got it to work, the problem is with the plugin, I had to move the project to another one with a clean install of the plugin. Same code but clean install got it to work.
Thanks got it to work, the problem is with the plugin, I had to move the project to another one with a clean install of the plugin. Same code but clean install got it to work.
I have got the same problem with geofire 2.0.3 version. Which version should i downgrade? How to fix can you explain a bit
I've realised that after invoking:
Geofire.queryAtLocation(latitude, longitude, radius).listen((map) {}
and getting successful results, if you press the back button and then launch the app again, the query won't return any result anymore, even though the@overrid void initState()
is called again and the code having the Geofire query is executed. The logs just display:queryAtLocation
but then no result comes through. If we kill the app completely then all works fine again. The only work around I found to have results after pressing the back button is to addGeofire.stopListener()
afterGeofire.onGeoQueryReady
. Next time we launch the app it works fine, however, during that app session we won't be listening for any other event since we've stop them which is not ideal. I've tried as well to doGeofire.stopListener()
when the lifecycle ispaused
and initialised Geofire and do the search again whenresume
but doesn't work. Is this something expected or I'm I doing something wrong?