Right now, I can login through Google with my app. I can post a marker on a map that will save the lat and longitude of my marker (using GeoFire) and I can also store user information into my DB (with Firebase).
But if I attempt to use the app and login from a separate account and post a marker, the first initial marker and user information will be replaced by the 2nd account.
What can I do so that a unique user can't replace another user's marker or info?
This is the code that will run when a user taps a button:
mDatabase.child("User").child("userName").setValue(profile.getName());
mDatabase.child("User").child("userID").setValue(profile.getUserId());
geoFire.setLocation("markerLocation", myLocation);