Associated Geofire Location with Firebase Record

So, I have an Android app that allows users to view messages in a specific radius of their current location. I am saving messages using firebase, but I could not find a way to request messages within a certain radius in firebase, so now I am thinking about using geofire, but I'm not sure if there is a way to save location along with my firebase messages using geofire, so that it seems to me that the only way to associate a location with a message is to specify the message identifier (the one generated by firebase), the key for the geological location. Is this right or is there a better way?

+7
android firebase geofire
source share
1 answer

Yes, that is the right way. You create a flat database. One branch with post data and one branch with locations.

0
source share

All Articles