# Issue With Firebase Realtime DB

**URL:** https://community.thunkable.com/t/issue-with-firebase-realtime-db/1454696
**Category:** Questions about Thunkable X
**Tags:** firebase, realtimedb
**Created:** [August 17, 2021, 8:42pm UTC](https://community.thunkable.com/t/issue-with-firebase-realtime-db/1454696 "2021-08-17T20:42:33Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![shrey](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/shrey/32/105637_2.png) [@shrey](https://community.thunkable.com/u/shrey)
#### Post date: [August 17, 2021, 8:42pm UTC](https://community.thunkable.com/t/issue-with-firebase-realtime-db/1454696/1 "2021-08-17T20:42:33Z")

</div>

I have an issue where the Realtime\_DB Data changed block not triggering at all. I have put the Add listener block when the screen starts. I have no idea why it doesn’t work.

Project link: [Thunkable](https://x.thunkable.com/projects/60c0c5b38134d7098238f001)

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [August 18, 2021, 8:22am UTC](https://community.thunkable.com/t/issue-with-firebase-realtime-db/1454696/2 "2021-08-18T08:22:01Z")

</div>

How do you know it doesn’t work?

I can see that your code is in screen2 but you add the listener in screen3.

In screen2 you have 3 blocks as the `DataChanged` all will run when any data is changed in the key you are listening to or any key under it.

Have you tried displaying the **key** and **value** in a label to see what are you receiving before you use the IF conditions?

---

<div class="post-metadata">

### Author: ![shrey](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/shrey/32/105637_2.png) [@shrey](https://community.thunkable.com/u/shrey)
#### Post date: [August 18, 2021, 5:09pm UTC](https://community.thunkable.com/t/issue-with-firebase-realtime-db/1454696/3 "2021-08-18T17:09:00Z")

</div>

yes, i have

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [August 18, 2021, 5:57pm UTC](https://community.thunkable.com/t/issue-with-firebase-realtime-db/1454696/4 "2021-08-18T17:57:05Z")

</div>

This is hardly an answer.

I assume you are replying to

> [@muneer](#):
>
> Have you tried displaying the **key** and **value** in a label to see what are you receiving before you use the IF conditions?

If so, can you explain what have you done and in which block of code?  
Please show what you tried.

When you tried it, was it displaying the expected results?

Please understand that we do not have access to your database and will never be able to test the app therefore we (in the community) expect that you will give **sufficient information in addition to screenshots**.

---

<div class="post-metadata">

### Author: ![shrey](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/shrey/32/105637_2.png) [@shrey](https://community.thunkable.com/u/shrey)
#### Post date: [August 19, 2021, 4:33pm UTC](https://community.thunkable.com/t/issue-with-firebase-realtime-db/1454696/5 "2021-08-19T16:33:09Z")

</div>

I used the add listener block and then put a vibrate (for testing) block inside when Realtime\_DB changed block with no IF block. The problem is when a value updates in the DB, it wont update in the app and the vibrate block. It works fine on a different project.

---

<div class="post-metadata">

### Author: ![shrey](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/shrey/32/105637_2.png) [@shrey](https://community.thunkable.com/u/shrey)
#### Post date: [August 19, 2021, 4:42pm UTC](https://community.thunkable.com/t/issue-with-firebase-realtime-db/1454696/6 "2021-08-19T16:42:13Z")

</div>

realtime DB picture:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/d/0dbb8bebffabdcb1bd80c45f5918f0e87734683a.png)

---

<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, 1:17pm UTC](https://community.thunkable.com/t/issue-with-firebase-realtime-db/1454696/7 "2024-11-08T13:17:17Z")

</div>


