Hello! I'm currently creating a small project that uses multiple Firebase components (29 to be exact). The block code is inefficient (I know). I just started coding with MIT App Inventor so I'm sure I'm doing something wrong--but sadly, I can't see it.
Here's what it's supposed to do:
- Get values from a Firebase Realtime Database. The project buckets are named after time (7:00, 8:30, 9:00, 10:30, etc.).
Examples:
and
- From each bucket, get a key-value pair (AName: "{random_name_here}"). Here are pictures of the contents within my database (The BName is basically there to represent another room. I'm assuming it will be irrelevant to this bug report).
and
- Print the value of AName within a Label component. Do this for all buckets (From 7:00 all the way to 21:00)
As you can see, it's not getting the AName of the other buckets (From 9:00 to 21:00) and is instead giving out an NA result which means no AName tag was detected. Here are further pictures of the Firebase component
Here is a picture of the blocks I am using. I'm guessing this must be horrifying to look at for more experienced developers but bear with me hahaha.
If anyone has any suggestions, corrections, or could point out where I went wrong, that would be much appreciated. Thank you for taking the time to read this!