Hope to seek some directional advice as I am currently not able to get data from real time firebase.
Have set up the blocks and real time database as follows and wish to get the “meditation-msg1” and display it in screen label. However what’s displayed is " [ object object ] ". Many thanks in advance if any Guru can kindly advice.
As shown in the screenshot of your database, ‘meditation-msg1’ is actually under the key ‘000001’, that is under ‘wisdom-quotes’. Because of this you will have to reference all three of these keys in your code.
To achieve this, you will have to add a ‘join’ block from the Text blocks. Next, using text boxes input the three keys into each in the appropraite order. In your case, that is ‘wisdom-quotes’, ‘000001’ and then ‘meditation-msg1’. Next, put some forward slashs in-between the keys.
Thanks everyone for the valuable advice. It’s been really helpful. Have managed to solve the get data issue via real time db following your shared tips… Super… Many thanks.
Have also added a random integer generator at the tail part of the “Join” so that messages stored in firebase may be randomly shown in the App Screen each time button is clicked.