How to Read from the Realtime Database #491
IkoniStudio
started this conversation in
General
Replies: 1 comment 8 replies
-
|
You can just use ("config", {}). |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Apologies first, I'm self-taught so my knowledge is limited. I need to read information from the realtime database for my mobile game (for now its just Android), I was able to have it working before but I think this plugin and instructions have been updated and now my code is not working.
In my realtime database my .json code is like so:
I just need the read the versions in order to proceed with the game or to send the player to an update UI.
In my game I call this code first to login in anonymously:
This appears to work. I can login anonymously - so I can successfully connect to Firebase.
Next, I had this function - which doesn't appear to work anymore:
I'm looking at the instructions and it appears I need to update this to:
And then, following the instructions if I call to print like so:
Except this (_on_db_data_update) never executes. I feel if I could get this to execute I could then do what I did before for testing: resource.key check and resource.data check. Any help would be appreciated, thanks.
Beta Was this translation helpful? Give feedback.
All reactions