Cannot get any data to show up in my firebase realtime database

97 views
Skip to first unread message

Patrick Hession

unread,
Jun 18, 2021, 5:01:19 AM6/18/21
to Firebase Google Group
I have tried lots of version changes, changing the values in the db, different oreientations of the way others are doing it on SO, I just don't understand what is going wrong?

Here is my android studio code:

DatabaseReference currentUserDb = (FirebaseDatabase.getInstance().getReference("message"));//.child("Users").child(radioButton.getText().toString()).child(userId).child("Name");
currentUserDb.setValue("Hello World!");

Here is my firebase database:

message: true

Andreas B

unread,
Jun 18, 2021, 5:22:08 AM6/18/21
to Firebase Google Group
It looks as if you've written to your database at least once, or there wouldn't be a "message" node.

What do your database rules look like? Is there anything that might prevent your code from writing to that location, or at all? For what it's worth, if you haven't changed your rules yet, the standard rules allow all writes for I believe a month, and then no writes to any location after that point.

Reply all
Reply to author
Forward
0 new messages