Search code examples
javaandroidfirebasefirebase-realtime-databasegeofire

How to give accurate Firebase reference?


I am generating some random 'Alphanumeric characters' and saving the data along with GeoFire location in it.

Here's how I am generating random alphanumeric characters:

String rac = UUID.randomUUID().toString();

The data is getting saved under this: appname/anotherReference/rac/

Now the problem is that how could I give the accurate reference of the randomly generated alphanumeric characters so that I can retrieve data from that?


Solution

  • This issue got solved just by giving simple reference like this: https://appname.firebaseio.com/anotherReference/.

    I learned that there was no need to give reference of that rac too!

    Anyways, Chris Conway helped me a lot in solving this issue.