How to Get Data based on User ID

Sorry i dont get it…could you give me some example blocks ?
i already check my firebase authentication, all of the email i tried to register is there.

this is my firebase realtime data base

and this is my project

https://x.thunkable.com/projects/624ff4b916e0fc0011ff54d2/61ec601c-01ef-45a0-9af7-b3c7ada5f74f

Here’s an example:

The Firebase path in that case is Hello/Kitty. You would then check your Firebase console to see if “I love Pink” appears there.

please can you check my project to check my blocks?

https://x.thunkable.com/projects/624ff4b916e0fc0011ff54d2/526a5722-585d-4e61-82a4-0ef51aef56ba/blocks

yup already tried it Sir …and the whole details that i have input appeared in my firebase console.

@roscoron390jb Are you testing in the companion app or in live preview in the browser?

both tester Sir…

Can you recopy your db url and api key from Firebase to Thunkable in your projects settings tab? Make sure you copy everything exactly.

That’s step 1

Next step is using a cloud variable named test. When screen 1 opens, set cloud variable test to 1. The. Go to Firebase and look for that value in your db.

Make sure you look in the real-time database and not Firestore when you are on the Firebase website.

I already tried that ,right now im back to my main problem which that how can i save data in my local storage for each user.
i want to get the data of each user.

Why do you want to save user data locally? You’re already storing it in Firebase.

I mean, i want each users to see their specific data save in local storage.

if i want to create new account and then when i log it in i can still see the local data of the first user. how can i store the specific data locally?

Local data is stored in the user’s phone so if you log in to your app as First user and then saved the data of this user locally in your phone then you log out and log in again with Second User and view the information stored locally then you will see the information of the previous user. This is how Local Storage works.

When you save the Data in Firebase and under the UserID obtained by the login in screen then each user will save the data in a separate PATH under Firebase and no one will see another user’s data.

However, even in firebase, if you choose to save all data in the same PATH then all users will see the data and once a user save any data it will overwrite the existing data which could be for another user.

1 Like

thank you so much…now i understand, but is there any chance that i can store data in each user?using only thunkble?

1 Like

Can you give an example to make it clear of what you exactly want?