So this is my code for the place where you add the profiles (data):
And this is the place where you see the data:
This is the page where the data come from:
Thanks! If you want more info just ask and I will respond asap!
So this is my code for the place where you add the profiles (data):
Try this way!
change the lower blocks of position
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
Can you show a picture of your database which is populated with some example data so I can understand the structure.
This:
If you donât mind, can you share a project link. This can be via DM in the Community to myself if you wish. Thanks.
Hey
I sent the link!
Just got it there, let me take a look.
Great!
@eoinparkinson Were you able to have a look?
I have the same issue!
@blast24blast46ydf is that working for you now?