Skip to content

When multiple users push data to Realtime Database to get the firebase-generated-key? How do they get their key and not someone else's? #361

Closed Answered by WolfgangSenff
shafnaz asked this question in Q&A
Discussion options

You must be logged in to vote

They will definitely receive all of it. The way I typically solve this type of problem is by ensuring the data includes or even is keyed directly to the user's ID, so having like a document that has the user's ID as parse of the identifier, and then when the realtime database has data pushed, including the ID of the user that pushed it.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@shafnaz
Comment options

@WolfgangSenff
Comment options

@shafnaz
Comment options

Answer selected by shafnaz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants