Hello there,
I have noticed that when testing my apps, for some reason, the Realtime Database component only activates when the screen originally opens, when it is programmed to run every time the screen opens, could anyone tell me why this is happening?
(Screenshot of code is attached below)
Best,
Ian
Are you using the “Live Test” feature, whether it be on your phone or on the browser itself, to test your app, or are you downloading it and testing?
I have found that sometimes when using live testing on my phone it doesn’t save what I was working on, and I must reload the browser where I was working (on my PC) (Which then reverts the app to the last save, which usually is only a few steps behind), then it starts to catch up again.
Hope it helps,
chickenpotpie123
I have one question what kind of app is this?
This is an app that displays a list of books that you insert from Firebase.
Thanks,
Im currently trying to get everything ready to publish, I will let you know when it is out.
1 Like
You know that I’m about to do that with one of mine
It’s like camera you have different nature filters put mine is not public
Looks like a synchronization issue to me. The purple blocks are asynchronous blocks. You see, after the program called the realtimeDB block, before it finished fetching from the firebase and put the value into “stored book-count”, the program has gone on to process the next step which is your loop and the value of “stored book-count” is outdated.
Also, within the loop, you need to ensure that the get realtimeDB process is completed before the next iteration. You can do this by either introducing delays or (more confusing) recursive loops.