Hey @blast24blast46ydf, welcome to the Community
[object Object] appears because you’re trying to display an object with children (objects in objects). You must use the get property of object
block as shown by @KirkVanHouten.
Also, your key does not contain a forward slash to indicate a path in the Firebase Database.
You must join a “/” (forward-slash) between users
& app Profile
. Your Join block would look like this:
Also note that I’ve used the on screenName Opens
block. This means every time the screen opens your code will execute. on Screen Starts
may pose an issue.
The if value != null
statement shouldn’t be necessary as a user should not be able to access their profile page without an account anyway, though if you wish to have this fail safe you may.
You should have an if
statement that checks if it’s not an error, and that should look like this:
Check out this post for great information on using objects in your app.
You appear to be saving data correctly, so that shouldn’t be an issue. When testing if your app works with your database, have the database web portal open in another tab and check it when you change data to see if everything works as should.
I think I’ve covered a few tiny problems there, hopefully I haven’t missed anything