Hello, and Happy Easter!
Our app is close to be ready, but there are some things that need to be fixed, quickly.
The issue lies in storing and using some data in firebase.
On a previous post, I had some issues with the sign up/sign in, but that’s now working just fine.
Now, there are … things I need help with:
When you first register, the app guides you through a profile setup. Now, what I want is to store all of this data under each user.
Now, the problem is, after registe there’s no such thing as an user id, unlike log in, which I would need so that I could store that info under each user.
After the data is stored, it shall be used. One of its most important uses is in creating two “branches” of the app. Is this done correctly here? (edit: yes, it is)
Finally, the most important aspect of this app is sharing a location(also depending on the branches). Basically, one user is gonna send his location, and the other will receive it, alongside an alarm. How can I make it possible, based on their ID?
Oops, thank you for noticing this, changed it now. But we still need help on the issues mentioned in the post. Could you please look over the project and help us?
They should. But they also should replace each other’s data because the path and object names are identical. I would expect to see this after voluntar is clicked:
There must be something else deleting those nodes from Firebase. Check to see that you don’t have any stray blocks assigning values to Firebase paths. Is anyone else you know using the project or a copy of the project that can access Firebase?
If you can’t figure out the cause, start to slow things down. Add wait blocks so that you can watch the Firebase values to see when they change. It helps to do something visual on the screen like change a label’s value right before the wait block so you connect that to what is happening in Firebase. This is the method I use for debugging blocks: Debugging in Thunkable X (Video).
you have to create the object ONE TIME, with empty values, and then asign them as you go on. You cannot “add new fields” as you go on, because that will just get overwritten over the other fields.