# Can you help me with Firebase?

**URL:** <https://community.thunkable.com/t/can-you-help-me-with-firebase/42526>\
**Category:** Questions about Thunkable X\
**Tags:** firebase, realtimedb\
**Created:** [August 21, 2018, 8:39pm UTC](https://community.thunkable.com/t/can-you-help-me-with-firebase/42526 "2018-08-21T20:39:43Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bonolata\_Album](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@Bonolata\_Album](https://community.thunkable.com/u/Bonolata_Album)\
**Post date:** [August 21, 2018, 8:39pm UTC](https://community.thunkable.com/t/can-you-help-me-with-firebase/42526/1 "2018-08-21T20:39:43Z")

</div>

Can anyone check this information.

When you run in Thunkable Live X (last ver. 44) the project the Spinner displays the “item 2” and in text line Label (as shown)

---

<div class="post-metadata">

**Author:** ![emilio1](https://avatars.discourse-cdn.com/v4/letter/e/919ad9/32.png) [@emilio1](https://community.thunkable.com/u/emilio1)\
**Post date:** [October 3, 2018, 11:11am UTC](https://community.thunkable.com/t/can-you-help-me-with-firebase/42526/2 "2018-10-03T11:11:19Z")

</div>

Hi,

In the app that I am building I organized the firebase real-time database like this: request (this is the parent), userId (they can be many different), and list with the location for each user.

( ![thunk](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/9/a9380822afdbbb3117c22b77ba35d1cf905f3a1d.png)

I want to listen to request if any userId will be added and get the userId that has been added. How can I do that with thunkable?

---

<div class="post-metadata">

**Author:** ![Mike\_Fourway\_Flasher](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@Mike\_Fourway\_Flasher](https://community.thunkable.com/u/Mike_Fourway_Flasher)\
**Post date:** [October 18, 2018, 7:41pm UTC](https://community.thunkable.com/t/can-you-help-me-with-firebase/42526/3 "2018-10-18T19:41:55Z")

</div>

I am creating an app that is basically a checklist for my comic books.

I’ve got the app working to the point where it displays all of the Titles. Then I can view all of the issues, and then the actual book.

Now I want to capture whether or not the user has a particular issue. I’m thinking of using local storage rather than storing that information in my Database. I’m not sure which is the better way to go. (I’m not sure I want to make a whole log-in system for my app).

But to do this I want to capture the ID of the book and give it a value of true or false. I’m just having a hard time capturing the ID information of the book. Can someone please point me in the right direction?

 ![example-1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/c/6c64b65aa1e5f81684167137bcb29af4d323fce7.png)

---

<div class="post-metadata">

**Author:** ![point](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/point/32/113590_2.png) [@point](https://community.thunkable.com/u/point)\
**Post date:** [December 9, 2018, 12:57pm UTC](https://community.thunkable.com/t/can-you-help-me-with-firebase/42526/4 "2018-12-09T12:57:05Z")

</div>

Just leave the Project Bucket Leave empty  
 ![1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/6/06e4a05a87cc5c77b6336387302f848499e5505d.png)

Note!  
In thunkable x you will see quotation marks (for example: “word”)

---

<div class="post-metadata">

**Author:** ![Navneet\_Singhal](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/navneet_singhal/32/27994_2.png) [@Navneet\_Singhal](https://community.thunkable.com/u/Navneet_Singhal)\
**Post date:** [December 14, 2018, 4:34pm UTC](https://community.thunkable.com/t/can-you-help-me-with-firebase/42526/5 "2018-12-14T16:34:08Z")

</div>

Hi,

I have created Firebase sign in , sign up page which works fine. [https://x.thunkable.com/projects/5c0221f3b5f0362dad71e3a1/project/properties/designer/](https://x.thunkable.com/projects/5c0221f3b5f0362dad71e3a1/project/properties/designer/)

Now I want to keep every users profile data separately.

Also I want users to login and submit daily timesheet for separate departments and keep that database in excel sheet.

Please guide.

---

<div class="post-metadata">

**Author:** ![Bigchips](https://avatars.discourse-cdn.com/v4/letter/b/7ba0ec/32.png) [@Bigchips](https://community.thunkable.com/u/Bigchips)\
**Post date:** [January 29, 2019, 7:01pm UTC](https://community.thunkable.com/t/can-you-help-me-with-firebase/42526/6 "2019-01-29T19:01:32Z")

</div>

Hi, All  
So I want to have a user sign in to get authenticated. Then save the new users profile to firebase database. The problem is everytime i signup a new user it doesn’t add, it replaces the data. Here are the blocks i have

 ![Screenshot%20(13)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/f/1f39c7d5237cf10c33a8589e56317caed11f05d0.png)

---

<div class="post-metadata">

**Author:** ![RTownsend](https://avatars.discourse-cdn.com/v4/letter/r/0ea827/32.png) [@RTownsend](https://community.thunkable.com/u/RTownsend)\
**Post date:** [February 7, 2019, 5:46am UTC](https://community.thunkable.com/t/can-you-help-me-with-firebase/42526/7 "2019-02-07T05:46:26Z")

</div>

Hi all, I’m building my first app and I’m super stuck. I’m building an application which allows me to track my climbs on the stairmaster, but it just rewrites the information over and over again.

I need to create transactions, where each transaction has the following information:

In each “Climb”, I need the following info:

userName (can I use their email address ? I heard that firebase doesn’t allow that)  
date (can this just be a time stamp?)  
totalSteps  
totalFloors  
totalCalories  
totalTime

In the end I want to create a list of climbs that I do, which I can scroll through by date. I also want to be able to add up all the steps and all the floors into a grand total, like the Nike Running app does for your lifetime miles. But to start, I need to figure out how to get this data into the database.

Right now, I can record the totalSteps, totalFloors, totalCalories, totalTime - but it doesn’t record the user or the time, nor does it create a record for each time new information is entered, it just overwrites.

Any help would be appreciated, and then I’ll write out a full how-to when I’m done to contribute back to the group.

This is what I have so far:

 ![33%20AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/3/4373a2ee6bd3c684ae744728dd6c8b7741fbb379.png)

---

<div class="post-metadata">

**Author:** ![Almosthandy](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@Almosthandy](https://community.thunkable.com/u/Almosthandy)\
**Post date:** [February 9, 2019, 12:40pm UTC](https://community.thunkable.com/t/can-you-help-me-with-firebase/42526/8 "2019-02-09T12:40:04Z")

</div>

Hi again folks!

I wanted to know the plausibility of using Firebase for filtering list viewer selections.

I have a spreadsheet with a list of restaurants. Each column represents a different cuisine aspect, such as " breakfast", “burgers”, “upscale”, or “Pizza”. If a restaurant falls into a certain category, I have that cell marked.

In the app, I want the list view to show all of the different cuisine aspects. When a user chooses a list item, for example, “burgers”, I want only the restaurants marked “burgers” to show up in a scrollable arrangement under the list viewer.

Could this work if I have the data in Firebase? Can thunkable do what I want it to do?

If it’s possible, I want to go and try to make it work, but I don’t want to waste a lot of time trying something that ultimately can’t work on this platform.

Thank you all so much!

EDIT:  
I’m also looking at the example posted on [http://community.thunkable.com/t/app-to-filter-data-based-on-city-name/21878/5](http://community.thunkable.com/t/app-to-filter-data-based-on-city-name/21878/5) by Italo. It looks very similar to what I’m looking for.

---

<div class="post-metadata">

**Author:** ![NoviceUser](https://avatars.discourse-cdn.com/v4/letter/n/8797f3/32.png) [@NoviceUser](https://community.thunkable.com/u/NoviceUser)\
**Post date:** [February 15, 2019, 10:42am UTC](https://community.thunkable.com/t/can-you-help-me-with-firebase/42526/9 "2019-02-15T10:42:49Z")

</div>

Is there any way to ensure that data has been returned (or an error generated because there is no data to get) before progressing to the next line of code inside a Count from 1 to x loop?

I thought that the ‘when Get is done’ would cope with it, but in the code that I have written I get missing data nine times out of ten even when I use a Wait block. I’m not sure if this is the best way to show the code:

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

My loop is normally between 7 and 9 iterations and including the Wait command I get a 75% success rate; without it I get a 5% success rate for all of the data. I can improve the success rate by extending the delay, but ideally I don’t want to build in a long wait to retrieve everything.

Any help much appreciated!

---

<div class="post-metadata">

**Author:** ![collingwoodkarate](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@collingwoodkarate](https://community.thunkable.com/u/collingwoodkarate)\
**Post date:** [July 27, 2020, 2:02pm UTC](https://community.thunkable.com/t/can-you-help-me-with-firebase/42526/10 "2020-07-27T14:02:04Z")

</div>

Hi There, I am new here 🙂 I have tried for days to get firebase rules working for higher security. I would like firebase to only allow read write if the correct user is signed in.  
I’ve slightly modified the fav phrase app tutorial that I followed on youtube (Thank you to the creator - I’m sorry I can’t find the tutorial again to give proper credit). It works if I set the read-write rules to true, but I can’t get thunkable project to work if the following rules are in place: {  
“rules”: {  
“users”: {  
“$uid”: {  
“.read”: “auth != null && auth.uid == $uid”,  
“.write”: “auth != null && auth.uid == $uid”  
}  
}  
}  
}  
Here is a link to the thunkable project: [https://x.thunkable.com/copy/78a87c4a25306801705567167ca558a6](https://x.thunkable.com/copy/78a87c4a25306801705567167ca558a6)

Any help would be greatly greatly appreciated. Ive watched/read so many tutorials, and can’t get it to work. Thank you so much.

---

<div class="post-metadata">

**Author:** ![infoim70on](https://avatars.discourse-cdn.com/v4/letter/i/47e85d/32.png) [@infoim70on](https://community.thunkable.com/u/infoim70on)\
**Post date:** [August 6, 2020, 12:58am UTC](https://community.thunkable.com/t/can-you-help-me-with-firebase/42526/11 "2020-08-06T00:58:39Z")

</div>

I have been using Firebase block for connecting to database. However, since my mobile app will be designed for two types of login, including anonymous login and email login. Currently, what I am doing is just change the database read and write rules to true, so it does not require auth (i.e. I treat it as anonymous login).

However, I believe that is not the proper way to deal with the login. Is there any workaround for anonymous login?

Thanks!

---

<div class="post-metadata">

**Author:** ![Leito](https://avatars.discourse-cdn.com/v4/letter/l/bc8723/32.png) [@Leito](https://community.thunkable.com/u/Leito)\
**Post date:** [August 7, 2020, 4:25am UTC](https://community.thunkable.com/t/can-you-help-me-with-firebase/42526/12 "2020-08-07T04:25:24Z")

</div>

Hi! Please could you help me with this blocks? the first time I load them, everything is fine. But if I navigate to this screen more times, starts to crashing or navigating slowly.  
the images weigh is 483 kb.

Can you give me some tip? or Other way to configure the blocks? Thanks you very much

 ![1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/0/9037d975fb59d311b1a9b505a513a4b55d85d0ca.png) ![2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/6/266aca94929a99d84624e2c70ceab08621052e5e.png)

---

<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:** [August 11, 2020, 10:45pm UTC](https://community.thunkable.com/t/can-you-help-me-with-firebase/42526/13 "2020-08-11T22:45:37Z")

</div>

Since you’re all working with Firebase I thought I’d group these questions together so you could help one another out.

Of course, it’s worth checking out the [RealtimeDB](https://docs.thunkable.com/realtime-db) and [Email Sign-In](https://docs.thunkable.com/sign-in-1) documentation as a first port of call.

I also noticed that @David_Wolber has a great video about using Firebase that you might find useful:

[![](https://img.youtube.com/vi/CfkKxtbB6s4/maxresdefault.jpg "10. Thunkable: Connect to Firebase in a Social App") ](https://www.youtube.com/watch?v=CfkKxtbB6s4)

Let us know here if you need any other help @Bonolata_Album @emilio1 @Mike_Fourway_Flasher @point @Navneet_Singhal @Bigchips @RTownsend @Almosthandy @NoviceUser @collingwoodkarate @infoim70on @Leito!

---

<div class="post-metadata">

**Author:** ![David\_Wolber](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/david_wolber/32/117458_2.png) [@David\_Wolber](https://community.thunkable.com/u/David_Wolber)\
**Post date:** [August 11, 2020, 11:45pm UTC](https://community.thunkable.com/t/can-you-help-me-with-firebase/42526/14 "2020-08-11T23:45:34Z")

</div>

Hi @domhnallohanlon and thanks for the note about the video.

I’ve been having some issues with firebase and sign in.

- I want to have user names to tag posts with that instead of emails (like in video). I’d like to use a cloud variable to keep track of all user names and keep them distinct, and use real time db to map emails to user names. For some reason, the realtimedb isn’t working…I was wondering, can you have both cloud variables and realtimedb mapped to firebase?
- is there some other way to do usernames. I know firebase gives an id back when you signin, but what I’m looking for is a user-specified username. It would be great if you could give that to the signup/signin blocks and have it part of FB users accounts. This would make my first question moot.

Thanks for asking about this stuff, I think stabilizing the cloud stuff is key

---

<div class="post-metadata">

**Author:** ![hdawc](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/hdawc/32/119068_2.png) [@hdawc](https://community.thunkable.com/u/hdawc)\
**Post date:** [August 14, 2020, 11:27pm UTC](https://community.thunkable.com/t/can-you-help-me-with-firebase/42526/16 "2020-08-14T23:27:13Z")

</div>

For anyone still looking for an answer, here’s my blocks to create a more detailed structure.

These blocks:

 ![firebase-json](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/7/2782d354f62e4705dc694e1a22bcd2a90e23e017.png)

Give you this in Firebase:

 ![example-of-firebase-data_structure](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/c/ecb42a62b821f06cad6a09c5d74a0384f2f52e6e.jpeg)

Obviously the data sources are all different but that doesn’t matter, the **most important part is using the forward slash** to go down (or up) a level.

As well as the “Create Object” block to add several items e.g. `completed` and `started` under ‘`time`’

I have previously used OneSignal to get a unique user ID and remove the hyphens. But creating a Firebase login makes perfect sense too!

Hope that helps someone! 😆 👍

---

<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, 11:52am UTC](https://community.thunkable.com/t/can-you-help-me-with-firebase/42526/17 "2024-11-08T11:52:22Z")

</div>


