Help accesing realtime database and getting data to dictionary #285
-
So im trying to use the real-time database from Firebase as a database to store event information and use this data to run certain functions in my Godot project. I've looked at the documentation and the chat example using the realtime database but i can't figure out how to retrieve the information? I have gotten authentication to work just fine though. Could someone help me get access to the data or explain in more detail how to do so? I have included my relevant code below and an image of the database, How would i go about creating a dictionary for every Event or just the entire event tree inside my project from the database. Currently, I receive no response from the database at all.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
You have an incorrect signal listed for the second one. The two signals you want are: You're using See more at these places: https://github.com/GodotNuts/GodotFirebase/blob/main/addons/godot-firebase/database/reference.gd#L9 |
Beta Was this translation helpful? Give feedback.
You have an incorrect signal listed for the second one. The two signals you want are:
patch_data_update
and
new_data_update
You're using
patch_new_update
, which isn't a signal we have. You'll be able to tell by the error in Godot when attempting to run that line - it'll say the signal doesn't exist so cannot connect to it.See more at these places:
https://github.com/GodotNuts/GodotFirebase/blob/main/addons/godot-firebase/database/reference.gd#L9
https://github.com/GodotNuts/GodotFirebase/wiki/Realtime-Database#firebasedatabasereference