# Firebase Realtime Database not working

**URL:** <https://community.thunkable.com/t/firebase-realtime-database-not-working/1308489>\
**Category:** Questions about Thunkable X\
**Tags:** firebase, beginner\
**Created:** [May 26, 2021, 8:57am UTC](https://community.thunkable.com/t/firebase-realtime-database-not-working/1308489 "2021-05-26T08:57:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabriel.pasca0w](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@gabriel.pasca0w](https://community.thunkable.com/u/gabriel.pasca0w)\
**Post date:** [May 26, 2021, 8:57am UTC](https://community.thunkable.com/t/firebase-realtime-database-not-working/1308489/1 "2021-05-26T08:57:10Z")

</div>

Hi Thunkable Community,

For the past 6 days I have tried all the tutorials and followed all the documentation but I am not able to store anything into my firebase database.  
I have change the firebase datacenter from an european one to an american one.9  
([Firebase Realtime database not working when you choose Europe datacenter](https://community.thunkable.com/t/firebase-realtime-database-not-working-when-you-choose-europe-datacenter/1280376))

At the begging I tried to run my connection from my own app, Now I am using for  
CoffeeTracker (Realtime DB) project from Darren.  
[Thunkable](https://x.thunkable.com/projectPage/5d1a93d12c8557585084c6c2).

What is nice about this project(from Darren) is that is I didn’t connect with my firebase credentials( API key + databaseURL) the app is using just the default Thunkable Firebase account, then I can run the app.  
When I connect using my credentials it does not work.

Any tips for solving this problem?  
Thank you for your feedback

---

<div class="post-metadata">

**Author:** ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)\
**Post date:** [May 26, 2021, 9:42am UTC](https://community.thunkable.com/t/firebase-realtime-database-not-working/1308489/2 "2021-05-26T09:42:00Z")

</div>

Are you using the old or new interface?

You’ve worked through the setup directions here, including API key and database url? [Realtime DB by Firebase - Thunkable Docs](https://docs.thunkable.com/realtime-db)

First thought: do you have your access permissions set up right?

Second thought: if you’re using the older purple blocks, are you displaying the value of the error block, and what does it say?

---

<div class="post-metadata">

**Author:** ![gabriel.pasca0w](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@gabriel.pasca0w](https://community.thunkable.com/u/gabriel.pasca0w)\
**Post date:** [May 26, 2021, 9:11pm UTC](https://community.thunkable.com/t/firebase-realtime-database-not-working/1308489/3 "2021-05-26T21:11:34Z")

</div>

Hi Catsarisky,

Thank you for your feedback, I have followed the setup directions and set the access permissions correctly.  
This is how the code looks like. As mentioned before, if I don’t enter my credentials everything works fine.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/e/7e7de7db1ddb78be4f8716b7e72a37d96a9a2386.png)  
I am not sure how to display the value of the error block.

---

<div class="post-metadata">

**Author:** ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)\
**Post date:** [May 26, 2021, 10:31pm UTC](https://community.thunkable.com/t/firebase-realtime-database-not-working/1308489/4 "2021-05-26T22:31:34Z")

</div>

Which UI are you using?

---

<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:22pm UTC](https://community.thunkable.com/t/firebase-realtime-database-not-working/1308489/5 "2024-11-08T13:22:16Z")

</div>


