How to use realtime DB to collect user data?

I would like to understand how the real time DB works and how to use it.

Hello @tanasetaro, the real-time database has four main functions.

  • The get function


  • The save function


  • The AddListener function


  • And the RemoveListener function


To save someone’s data you will need to perform a sign-in function to get the users ID. Then you can perform a Save function using the ID from the sign-in as the key and store their data in an object form.

Have a look at this example I have made.

(Please note you will have to supply your own API key and database URL)