I have implemented an authentication process using Firebase, my user should now be able to add data and have it displayed on a user-specific scale (each user has their own data).
From what I have read, this is how I can add data to the Database:
private void setData() {
// Write a message to the database
FirebaseDatabase database = FirebaseDatabase.getInstance();
DatabaseReference myRef = database.getReference("Message");
myRef.setValue("Hello World !");
}
But in the console, the data seems to be accessible by all users, is the Firebase database what I should use in order to store user-specific data? If so, how may that be achieved?
Excuse me if my question is obvious, but I am rather new to these principles.