shashank
(Shashank Gahtori)
August 25, 2020, 2:13pm
#1
Hello.
I am storing user’s mobile number as the tag as well as the value in my Project Bucket named “Users” in Firebase DB.
Here are the blocks:
Here is the result:
Then, I am uploading a user image (profile picture) for that same number.
The blocks I am trying are:
I want to know that, is there a way that I can upload the profile picture in a way that it gets related to the phone number of the user, so that when I get the data somewhere, I can get values of both Phone Number and profile picture?
Please let me know…
Thanks.
you can store bothe download link and phone number in one tag and separate them by a separator ( @ for example ) and when you get the tag you will get them together.If you want one of them split at the separator and select list item from the list you get as you want.
pepocero
(Pepocero)
August 25, 2020, 2:43pm
#4
If you are using google authentication it is convenient to use the rules so that a user can write data only in their space.
And then organize the data so that each project bucket is the UserId of the user.
Here’s a discussion on that:
I’ve encountered the same problem. I solved it. I don’t know if it’s the right way, but it works for me.
When you first login with google, the user is created in the Authentication section. But it doesn’t let you write data in firebase (with the rules defined for you to write in your own bucket)
I’m not sure, but I think it doesn’t let you write in the firebase database with the same token id you created the user with.
So I solved it by getting another token id and passing it to firebase, and…
It is convenient to organize the firebase data more or less like this:
3 Likes
shashank
(Shashank Gahtori)
August 25, 2020, 2:53pm
#5
Thank you so much! I want it exactly like in the picture you’ve shown above. Does the link you shared include how to organize data like that?
I am confused with the blocks. I want it exactly the same.
shashank
(Shashank Gahtori)
August 26, 2020, 10:18am
#6
Can you please show me how?
These are my current blocks that I have tried:
1 Like
Okay i will post you the updated blocks .
1 Like
Can you send me an aia or ais.It’s easier to edit
1 Like
Those are the updated blocks:
And this is how to seprate them later:
1 Like
shashank
(Shashank Gahtori)
August 26, 2020, 10:50am
#12
with the global variables set to “create empty list”, right?
No it can be empty string
1 Like
system
(system)
Closed
September 25, 2020, 10:57am
#16
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.