How to store location information of different users from an android app to firebase real-time database?

Viewed 20

I am trying to save the location information (Latitude & Longitude) of different users in the firebase real-time database. I have successfully done that for a single user but how to do it for each user who is using my app? I am developing using Java (not Kotlin) in the background so any help in this regard will be very helpful.

...

I just want to know that if we have two users simultaniously using my app, how do I track them using user IDs? Right now even if I am using 2 instances of my app, it is continuously replacing the data in the firebase database.

Snapshot of my firebase Db is here

0 Answers
Related