- Home /
Unity and Firebase reading new data
Hi, I am working with Firebase for my Unity app and I would like to know if there is a code that reads new data that gets stored in the Firebase database?
ie: user adds a comment, then the comment gets stored in the database. then other users gets to read the comment that just got added.
I am not asking for a full code. If you can provide me a line of code that allows me to read new data in the database that would be really great.
Thanks!
Comment
Answer by Hardik029 · Mar 29, 2018 at 05:33 AM
You can set trigger on the database so that every time database is updated it fetch the new value added to a database.
For code and other stuff refer this: https://firebase.google.com/docs/functions/database-events