# Firebase data changed exploration

**URL:** https://community.thunkable.com/t/firebase-data-changed-exploration/1668455
**Category:** Questions about Thunkable X
**Created:** [January 9, 2022, 10:58am UTC](https://community.thunkable.com/t/firebase-data-changed-exploration/1668455 "2022-01-09T10:58:51Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![bibbi](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@bibbi](https://community.thunkable.com/u/bibbi)
#### Post date: [January 9, 2022, 10:58am UTC](https://community.thunkable.com/t/firebase-data-changed-exploration/1668455/1 "2022-01-09T10:58:51Z")

</div>

hi

I have already used the following block

 ![Capture d’écran 2022-01-09 à 11.53.12](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/e/6e1c5687c4f137c921e9a800d547784d9d39a7fe.png)  
which works perfectly for a “static” variable which corresponds to a precise node.  
but it doesn’t work anymore when I have to probe different child nodes (whose quantity is variable) of a parent folder  
can we combine it with these blocks?

 ![Capture d’écran 2022-01-09 à 11.56.40](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/5/d5977638db1b05269c90bbffbd95bde446bee88c.png)

---

<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: [January 9, 2022, 12:43pm UTC](https://community.thunkable.com/t/firebase-data-changed-exploration/1668455/2 "2022-01-09T12:43:02Z")

</div>

At this time, it is not possible. The last I heard is the team is working on a solution for that but it is not yet ready.

**[Edit]**  
I have to say that this option is still available under the StP UI. You need to use the Firebase DB blocks to make this happen.

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

You have to first add a listener to any dynamic key you want then use the Data Change block to monitor changes to the database.

---

<div class="post-metadata">

### Author: ![bibbi](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@bibbi](https://community.thunkable.com/u/bibbi)
#### Post date: [January 9, 2022, 3:30pm UTC](https://community.thunkable.com/t/firebase-data-changed-exploration/1668455/3 "2022-01-09T15:30:33Z")

</div>

hi

thank you for your answer so I should find the time to redo everything using StP  
😕

---

<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: [January 9, 2022, 4:08pm UTC](https://community.thunkable.com/t/firebase-data-changed-exploration/1668455/4 "2022-01-09T16:08:46Z")

</div>

> [@bibbi](#):
>
> find the time to redo everything using StP

Not necessary.

Are you trying to detect data changes from the same app but with other users or is it from apps you do not have control of?

If the changes are from apps that you can control then there is a workaround which you can do in DnD.

---

<div class="post-metadata">

### Author: ![bibbi](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@bibbi](https://community.thunkable.com/u/bibbi)
#### Post date: [January 11, 2022, 5:55am UTC](https://community.thunkable.com/t/firebase-data-changed-exploration/1668455/5 "2022-01-11T05:55:11Z")

</div>

Hi

I’m trying to detect changes with the same app from other users

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [January 11, 2022, 2:17pm UTC](https://community.thunkable.com/t/firebase-data-changed-exploration/1668455/6 "2022-01-11T14:17:05Z")

</div>

there is no solid date yet, but we do plan to reintroduce the listeners in DnD. I would imagine if we hear this is causing a lot of disturbance for users it may be prioritized. 😉

Squeaky wheels do get greased

---

<div class="post-metadata">

### Author: ![bibbi](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@bibbi](https://community.thunkable.com/u/bibbi)
#### Post date: [January 11, 2022, 9:42pm UTC](https://community.thunkable.com/t/firebase-data-changed-exploration/1668455/7 "2022-01-11T21:42:45Z")

</div>

Thanks for your answer  
While waiting for this great announcement I will familiarize myself with StP UI

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [January 11, 2022, 9:59pm UTC](https://community.thunkable.com/t/firebase-data-changed-exploration/1668455/8 "2022-01-11T21:59:23Z")

</div>

I haven’t tried it yet, but i wonder how well this may work for people  
 ![Screen Shot 2022-01-11 at 5.00.54 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/3/b354b5c78a03347563777358c9e872eb29297371.png)

Essentially you could copy your cloud variables bucket that you want to listen to into a local variable

I have a timer set to fire every 3 seconds. when it fires it checks if my local version matches the cloud version and if not, it updates the local version. This is not the same as what the firebase listener blocks do, but is similar and may function as a workaround until we have a better solution.

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [January 12, 2022, 2:06am UTC](https://community.thunkable.com/t/firebase-data-changed-exploration/1668455/9 "2022-01-12T02:06:08Z")

</div>

I’m so curious if this method is faster or slower than updating individual variables with individual Firebase values, which is what I’m doing for my Next Letter game/chat app. My guess is since Firebase is JSON based, it’s faster to transfer the whole database at one time. It’s also fewer reads from the Firebase database which is important because their limit is not that high.

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [January 12, 2022, 2:17am UTC](https://community.thunkable.com/t/firebase-data-changed-exploration/1668455/10 "2022-01-12T02:17:35Z")

</div>

Firebase doesn’t actually put a read count limit on the dB access. 😉 pricing is based on total GB/month stored plus data egress GBs/month

I could be wrong but I’m fairly confident here.

Firestore, on the other hand, does count total reads/writes/deletes per month and charges based on that.

End of day: this is still not ideal and only a workaround for a more solid answer → listeners.

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [January 12, 2022, 2:30am UTC](https://community.thunkable.com/t/firebase-data-changed-exploration/1668455/11 "2022-01-12T02:30:47Z")

</div>

Hmm, I thought I read there was a limit of 1,000 read calls per second. But now that I look at their [Realtime Database limits](https://firebase.google.com/docs/database/usage/limits), it’s more like 100,000. I don’t have to worry about those kinds of numbers. I was hesitant to have my “listener” check Firebase more than once per second but maybe I’ll make it more frequent now.

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [January 12, 2022, 2:42am UTC](https://community.thunkable.com/t/firebase-data-changed-exploration/1668455/12 "2022-01-12T02:42:01Z")

</div>

Nice share! I hadn’t seen this page before!

 ![Screen Shot 2022-01-11 at 9.41.25 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/e/9e2989eed729c8d75c1375861af33ce9fb0d6af7.jpeg)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [April 12, 2022, 2:43am UTC](https://community.thunkable.com/t/firebase-data-changed-exploration/1668455/13 "2022-04-12T02:43:01Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
