# I am having trouble receiving data from Firebase and displaying the data on a label

**URL:** <https://community.thunkable.com/t/i-am-having-trouble-receiving-data-from-firebase-and-displaying-the-data-on-a-label/731974>\
**Category:** Questions about Thunkable X\
**Tags:** firebase\
**Created:** [August 10, 2020, 6:30pm UTC](https://community.thunkable.com/t/i-am-having-trouble-receiving-data-from-firebase-and-displaying-the-data-on-a-label/731974 "2020-08-10T18:30:04Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![blast24blast46ydf](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@blast24blast46ydf](https://community.thunkable.com/u/blast24blast46ydf)\
**Post date:** [August 10, 2020, 6:30pm UTC](https://community.thunkable.com/t/i-am-having-trouble-receiving-data-from-firebase-and-displaying-the-data-on-a-label/731974/1 "2020-08-10T18:30:04Z")

</div>

So this is my code for the place where you add the profiles (data):

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/5/25bcb9b050d3e4cab296f7df6790cd31fe13fdf7.png)  
And this is the place where you see the data:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/c/1cae5c5ee81d6e0d19ecc5b35df00e3ef8253a38.png)  
This is the page where the data come from:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/d/4d2df7f1aa31ba769a5e8e926d0180197aadfed2.png)  
Thanks! If you want more info just ask and I will respond asap!

---

<div class="post-metadata">

**Author:** ![KirkVanHouten](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kirkvanhouten/32/69771_2.png) [@KirkVanHouten](https://community.thunkable.com/u/KirkVanHouten)\
**Post date:** [August 10, 2020, 6:55pm UTC](https://community.thunkable.com/t/i-am-having-trouble-receiving-data-from-firebase-and-displaying-the-data-on-a-label/731974/2 "2020-08-10T18:55:12Z")

</div>

![thunk_example](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/8/48bb16d0ec77b8518447da880032bcdbe356b363.png)

Try this way!

---

<div class="post-metadata">

**Author:** ![blast24blast46ydf](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@blast24blast46ydf](https://community.thunkable.com/u/blast24blast46ydf)\
**Post date:** [August 10, 2020, 7:00pm UTC](https://community.thunkable.com/t/i-am-having-trouble-receiving-data-from-firebase-and-displaying-the-data-on-a-label/731974/4 "2020-08-10T19:00:35Z")

</div>

It says this [object Object]  
This is what I did:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/a/0a2b10fd22360a13cad0971d299e74af3261e2aa.png)

---

<div class="post-metadata">

**Author:** ![KirkVanHouten](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kirkvanhouten/32/69771_2.png) [@KirkVanHouten](https://community.thunkable.com/u/KirkVanHouten)\
**Post date:** [August 10, 2020, 7:03pm UTC](https://community.thunkable.com/t/i-am-having-trouble-receiving-data-from-firebase-and-displaying-the-data-on-a-label/731974/5 "2020-08-10T19:03:30Z")

</div>

change the lower blocks of position

---

<div class="post-metadata">

**Author:** ![KirkVanHouten](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kirkvanhouten/32/69771_2.png) [@KirkVanHouten](https://community.thunkable.com/u/KirkVanHouten)\
**Post date:** [August 10, 2020, 7:06pm UTC](https://community.thunkable.com/t/i-am-having-trouble-receiving-data-from-firebase-and-displaying-the-data-on-a-label/731974/6 "2020-08-10T19:06:00Z")

</div>

![thun_2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/e/8ede5852fdd94e3cb41c1abc09f864866d2821bb.png)

---

<div class="post-metadata">

**Author:** ![blast24blast46ydf](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@blast24blast46ydf](https://community.thunkable.com/u/blast24blast46ydf)\
**Post date:** [August 10, 2020, 7:06pm UTC](https://community.thunkable.com/t/i-am-having-trouble-receiving-data-from-firebase-and-displaying-the-data-on-a-label/731974/7 "2020-08-10T19:06:18Z")

</div>

Like this?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/5/25589608abba274b87740bf66b8885ef4a041a0b.png)

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [August 10, 2020, 8:12pm UTC](https://community.thunkable.com/t/i-am-having-trouble-receiving-data-from-firebase-and-displaying-the-data-on-a-label/731974/8 "2020-08-10T20:12:54Z")

</div>

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.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/5/e53d199a166e40195d95f612dc017ad2030dc2be.png)  
You must join a “ **/** ” (forward-slash) between `users` & `app Profile`. Your Join block would look like this:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/b/fb2c6857d130024f06a2f7d9badbfe4ba9ec0c83.png)  
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:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/a/9a818b4f2dc3cb8659cde455e91331d3e1dc705b.png)  
Check out [this post](http://community.thunkable.com/t/project-bucket-option-in-ios/31957) 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 🙂

---

<div class="post-metadata">

**Author:** ![blast24blast46ydf](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@blast24blast46ydf](https://community.thunkable.com/u/blast24blast46ydf)\
**Post date:** [August 10, 2020, 8:27pm UTC](https://community.thunkable.com/t/i-am-having-trouble-receiving-data-from-firebase-and-displaying-the-data-on-a-label/731974/9 "2020-08-10T20:27:34Z")

</div>

Hay @eoinparkinson thanks for the response!  
This is what I did:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/6/86485cfbd7969e255db1cfe08d26fde17f9d4b13.png)  
But it shows undifined

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [August 10, 2020, 8:30pm UTC](https://community.thunkable.com/t/i-am-having-trouble-receiving-data-from-firebase-and-displaying-the-data-on-a-label/731974/10 "2020-08-10T20:30:36Z")

</div>

Can you show a picture of your database which is populated with some example data so I can understand the structure.

---

<div class="post-metadata">

**Author:** ![blast24blast46ydf](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@blast24blast46ydf](https://community.thunkable.com/u/blast24blast46ydf)\
**Post date:** [August 10, 2020, 8:32pm UTC](https://community.thunkable.com/t/i-am-having-trouble-receiving-data-from-firebase-and-displaying-the-data-on-a-label/731974/11 "2020-08-10T20:32:23Z")

</div>

This:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/e/6ec75ba561f3dcb87c65c594f146c7968967492f.png)

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [August 10, 2020, 8:34pm UTC](https://community.thunkable.com/t/i-am-having-trouble-receiving-data-from-firebase-and-displaying-the-data-on-a-label/731974/12 "2020-08-10T20:34:21Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![blast24blast46ydf](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@blast24blast46ydf](https://community.thunkable.com/u/blast24blast46ydf)\
**Post date:** [August 11, 2020, 4:47am UTC](https://community.thunkable.com/t/i-am-having-trouble-receiving-data-from-firebase-and-displaying-the-data-on-a-label/731974/13 "2020-08-11T04:47:15Z")

</div>

Hey  
I sent the link!

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [August 11, 2020, 12:59pm UTC](https://community.thunkable.com/t/i-am-having-trouble-receiving-data-from-firebase-and-displaying-the-data-on-a-label/731974/14 "2020-08-11T12:59:43Z")

</div>

Just got it there, let me take a look.

---

<div class="post-metadata">

**Author:** ![blast24blast46ydf](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@blast24blast46ydf](https://community.thunkable.com/u/blast24blast46ydf)\
**Post date:** [August 11, 2020, 1:04pm UTC](https://community.thunkable.com/t/i-am-having-trouble-receiving-data-from-firebase-and-displaying-the-data-on-a-label/731974/15 "2020-08-11T13:04:22Z")

</div>

Great!

---

<div class="post-metadata">

**Author:** ![blast24blast46ydf](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@blast24blast46ydf](https://community.thunkable.com/u/blast24blast46ydf)\
**Post date:** [August 11, 2020, 1:28pm UTC](https://community.thunkable.com/t/i-am-having-trouble-receiving-data-from-firebase-and-displaying-the-data-on-a-label/731974/16 "2020-08-11T13:28:06Z")

</div>

@eoinparkinson Were you able to have a look?

---

<div class="post-metadata">

**Author:** ![blast24blast46ydf](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@blast24blast46ydf](https://community.thunkable.com/u/blast24blast46ydf)\
**Post date:** [August 11, 2020, 4:25pm UTC](https://community.thunkable.com/t/i-am-having-trouble-receiving-data-from-firebase-and-displaying-the-data-on-a-label/731974/17 "2020-08-11T16:25:15Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/f/7fca5fc4f11d9b1202433a0b5094cac12a5f85ab.png)  
Is this it?

---

<div class="post-metadata">

**Author:** ![aarushvverma8zvsz8](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@aarushvverma8zvsz8](https://community.thunkable.com/u/aarushvverma8zvsz8)\
**Post date:** [August 12, 2020, 10:06pm UTC](https://community.thunkable.com/t/i-am-having-trouble-receiving-data-from-firebase-and-displaying-the-data-on-a-label/731974/18 "2020-08-12T22:06:55Z")

</div>

I have the same issue! 😅

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [September 15, 2020, 10:06am UTC](https://community.thunkable.com/t/i-am-having-trouble-receiving-data-from-firebase-and-displaying-the-data-on-a-label/731974/19 "2020-09-15T10:06:34Z")

</div>

@blast24blast46ydf is that working for you now?

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:23pm UTC](https://community.thunkable.com/t/i-am-having-trouble-receiving-data-from-firebase-and-displaying-the-data-on-a-label/731974/20 "2024-11-08T12:23:58Z")

</div>


