# \[Solved\] Storing user specific data in firebase

**URL:** <https://community.thunkable.com/t/solved-storing-user-specific-data-in-firebase/70806>\
**Category:** Questions about Thunkable X\
**Tags:** solved\
**Created:** [March 1, 2019, 5:52pm UTC](https://community.thunkable.com/t/solved-storing-user-specific-data-in-firebase/70806 "2019-03-01T17:52:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TristanB](https://avatars.discourse-cdn.com/v4/letter/t/f6c823/32.png) [@TristanB](https://community.thunkable.com/u/TristanB)\
**Post date:** [March 1, 2019, 5:52pm UTC](https://community.thunkable.com/t/solved-storing-user-specific-data-in-firebase/70806/1 "2019-03-01T17:52:13Z")

</div>

I’ve found a lot of posts around this idea - but none for ThunkableX and the Firebase components seem to differ. I wonder if someone could point me in the right direction. Here’s what I’m trying to achieve.

App starts  
Checks for prior use (is this the first time its run)  
If not load its userId from a local store  
If so generate a unique non clashing userId and send to firebase  
Store a user entered variable in Firebase under that user ID

I’m having trouble getting firebase to create items that don’t get immediately overwritten by the next client.

So for example:

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

This will store only one user: userId - and it is overwritten every time its set. I’d like to store a list of them so I can store data in there.

This seems super basic but I’m a bit stuck!

---

<div class="post-metadata">

**Author:** ![Cian\_O\_Sullivan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cian_o_sullivan/32/34494_2.png) [@Cian\_O\_Sullivan](https://community.thunkable.com/u/Cian_O_Sullivan)\
**Post date:** [March 1, 2019, 6:00pm UTC](https://community.thunkable.com/t/solved-storing-user-specific-data-in-firebase/70806/2 "2019-03-01T18:00:17Z")

</div>

Its because “user/” is the tag. You need to do something like this

Key = join user/(stored=userName)/registered  
value = 1

The value can be a “registration” value. Now you have a sub-dir that you can use for the user, such as password, usage, etc.

Your firebase will be set up like

/user/userid/-- regsitered etc etc.

Does that help?

---

<div class="post-metadata">

**Author:** ![TristanB](https://avatars.discourse-cdn.com/v4/letter/t/f6c823/32.png) [@TristanB](https://community.thunkable.com/u/TristanB)\
**Post date:** [March 1, 2019, 6:28pm UTC](https://community.thunkable.com/t/solved-storing-user-specific-data-in-firebase/70806/3 "2019-03-01T18:28:26Z")

</div>

That is extremely helpful, thank you for taking the time to respond.

---

<div class="post-metadata">

**Author:** ![Cian\_O\_Sullivan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cian_o_sullivan/32/34494_2.png) [@Cian\_O\_Sullivan](https://community.thunkable.com/u/Cian_O_Sullivan)\
**Post date:** [March 1, 2019, 6:40pm UTC](https://community.thunkable.com/t/solved-storing-user-specific-data-in-firebase/70806/4 "2019-03-01T18:40:21Z")

</div>

Well I appreciate the detail and thought in your question. It is an example to others on how to ask a clear question.

---

<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:** [December 2, 2019, 7:36pm UTC](https://community.thunkable.com/t/solved-storing-user-specific-data-in-firebase/70806/5 "2019-12-02T19:36:07Z")

</div>

2 posts were split to a new topic: [Can tags be deleted from Firebase?](https://community.thunkable.com/t/can-tags-be-deleted-from-firebase/347711)

---

<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:46am UTC](https://community.thunkable.com/t/solved-storing-user-specific-data-in-firebase/70806/6 "2024-11-08T11:46:29Z")

</div>


