How to create separate bucket for user ,if my app is download 500 people so how to store all user data in separate bucket like user1,user2,user3…user500.
I have created this to manually but how to create this to automatic if user fill our all details then create user 5 and show data like this
[Mod Edit: cropped image to remove personally identifiable information]
It would be efficient to have your users log in with some credentials, and then use the UID as the bucket. Firebase Realtime Database even has something of this sort in the Documentation.
try like this but create Userdetails and User1 detail alone in the firebase DB,
remaining things this block will see
My block will count the existing length of the tag under UserDetails. So keep in mind that after suing this block you should not add any tag in this else this block will count that tag too
I repeat. To start this process manually we have to create User details> User1 details alone in the app. If not it will not function
Update
The above code adds data in my firebase as bellow,
The same person would thus create a new tag every time they reinstall the app.
@Aditya_mishra I highly recommend you follow the firebase documentation I shared. Otherwise you are disclosing personal information of your users. You need to have proper security to safeguard that.
And I have answered according to his query also if he seeks further or disclose the whole detail we can suggest him. Firebase authendication and the rules sometime really hard to understand.
Don’t worry my Firebese database pic is manually not a any user information its a demo information I fill in randomly to show you how to create like that