# Firebase real time db

**URL:** <https://community.thunkable.com/t/firebase-real-time-db/2504799>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [July 13, 2023, 6:04am UTC](https://community.thunkable.com/t/firebase-real-time-db/2504799 "2023-07-13T06:04:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![germanydrivingschool](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@germanydrivingschool](https://community.thunkable.com/u/germanydrivingschool)\
**Post date:** [July 13, 2023, 6:04am UTC](https://community.thunkable.com/t/firebase-real-time-db/2504799/1 "2023-07-13T06:04:43Z")

</div>

hi all, i have update firebase realtime db api key and datrabase url but still the option to work with the Realtime is not visible in thunkable blocks

can anyone please guide me how to have that Realtime db block available for me

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

---

<div class="post-metadata">

**Author:** ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)\
**Post date:** [July 13, 2023, 6:21pm UTC](https://community.thunkable.com/t/firebase-real-time-db/2504799/2 "2023-07-13T18:21:29Z")

</div>

Hi there @germanydrivingschool, thanks for reaching out! In our Drag and Drop editor, you should now use [cloud variables](https://community.thunkable.com/v/snap-to-place/variables#app-stored-and-cloud-variables) instead of adding a Realtime DB component–which is only available in Snap to Place projects.

---

<div class="post-metadata">

**Author:** ![germanydrivingschool](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@germanydrivingschool](https://community.thunkable.com/u/germanydrivingschool)\
**Post date:** [July 14, 2023, 6:18am UTC](https://community.thunkable.com/t/firebase-real-time-db/2504799/3 "2023-07-14T06:18:44Z")

</div>

HI matt, the link you have provided is not working… but do cloud variable store data the same way realtime db is storing. where i can see the database once i store value in cloud variable

---

<div class="post-metadata">

**Author:** ![ak\_coder](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ak_coder/32/156215_2.png) [@ak\_coder](https://community.thunkable.com/u/ak_coder)\
**Post date:** [July 14, 2023, 12:15pm UTC](https://community.thunkable.com/t/firebase-real-time-db/2504799/4 "2023-07-14T12:15:57Z")

</div>

Hello @germanydrivingschool  
If you have added both your API key and DB URL, this means you have added your app to firebase and also created a RT Database, if you have added all the credentials right, then you must get the data stored in your DB,  
And if its still not saving data, then there are two possibilities:

1. You have written the wrong code.
2. Your security rules of RTDB is not correct.

How to correct your rules:

1. Go to your project Realtime Databse page
2. Go to the rules section of your project.
3. Make sure your rules are public and read and write are correct, like:  
 ![2292eeb2-2d39-423e-ae0e-b050f135e47f](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/f/6f70feb0d5db88df59252e146be7c08d94217040.jpeg)

To know more about security rules, go to: [Get started with Firebase Security Rules &nbsp;|&nbsp; Firebase Realtime Database](https://firebase.google.com/docs/database/security/get-started?hl=en&authuser=0&_gl=1*oatou1*_ga*NTM5MDk5NjYxLjE2ODc4NDEyOTM.*_ga_CW55HF8NVT*MTY4OTMzNTQ1NC44LjEuMTY4OTMzNTkwOS4wLjAuMA)…

If there is still any issue, then please send the ss of your code, and if this solved your problem, then please mark this problem as solved.

---

<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:** [July 15, 2023, 3:54pm UTC](https://community.thunkable.com/t/firebase-real-time-db/2504799/5 "2023-07-15T15:54:02Z")

</div>

Yes. If you do set cloud variable “topLevel” to “test” then you should see in your Firebase Realtime Database (in the Firebase console):

topLevel : “test”

---

<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:** [October 13, 2023, 3:55pm UTC](https://community.thunkable.com/t/firebase-real-time-db/2504799/6 "2023-10-13T15:55:00Z")

</div>

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