Firebase not working

fire base doesn’t work. I was using the default link but it was working only partially. I made my own and tried to get the thing to work and track it through realtime database but it doesn’t work (first it’s supposed to save something and then read it but it does none and no changes happen to the database) … It’s not my (first time using firebase and I have another successful project with it. I hope I can get some help.

Are you developing an extension to work with firebase or trying to build a standard AI2 project?
(you have selected Open Source Development and Extension Development as your sections …)

Sorry about That. I misread it for being experimental stuff. It is just a normal app.

OK, just checking. Now…

Please provide a more detailed explanation of what you are trying to achieve,
what you have done so far, what works, what doesn’t work…

Please show your relevant blocks,
if relevant, your data or lists,
screenshots of the Designer screen or app in action, and firebase details,
so we can see what you are trying to do…

Right Click in Blocks Editor and select “Download Blocks as Image”
for the best image of your blocks.

Hello :smiley:
I’m really sorry but now it’s close to midnight and I was using my phone and waiting for a response bacuse I didn’t want to leave you hanging. Thank you so much for your will to help. This was my fault for not providing you with the blocks from the beginning but I will surely do so tomorrow as soon as possible. Again thanks alot and have a great day/night!

Thank you for showing “some” blocks, but more info needed:

Value of “global room”
Is this in FB TagList ?

What are you doing when you call the FB TagList ?

What does your realtime database structure look like ?

global room is the “lobby’s name” It is the taglist in FB indeed. When I call the FB taglist I am getting the list of rooms to see if there is a duplicate one. I think this is where the problem is as there are no rooms and the place is empty. I thought that I can add an if is list do the list stuff else if it equals the current room name then…
I think it’s a tree? I don’t really know much…
NB: These are all the blocks!

Hello! Is everything alright? I hope you’re fine over there.

If those are ALL your blocks Mahdi, that is the problem. You cannot create and use those blocks alone.

This is a link to Romin’s tutorial showing one way to use Firebase. Here is a link to Juan Antonio’s Firebase advice. You should be doing the kinds of things he shows. At the moment, you are not. I suggest you do the tutorial; learn how to use Firebase and try again coding your app.

Here are some resources to help you learn to use the AI2 tools. A very good way to learn App Inventor is to read the free Inventor’s Manual here in the AI2 free online eBook … the links are at the bottom of the Web page. The book ‘teaches’ users how to program with AI2 blocks.

There is a free programming course here and the aia files for the projects in the book are here:

How to do a lot of basic things with App Inventor are described here: .

Also look here and here for more tutorials.


Hello again! Could you point out a couple of mistakes in the blocks? (besides the csv stuff I’m still trying to figure things out). Btw thank you for the valuable sources.

Show all your blocks (right click on blocks editor and download as image)

csv stuff ? I thought we were using firebase here ?

That is what I’ve done… And yes it is about firebase.

Yes, sorry, this forum cuts off the blocks and you have to click on them to see them all!!

You have some strict conditions (only ifs, no if/elses) and you seem to be testing for the value of “global room” without setting it anywhere. You also seem to have tried to use every firebase block available, i am not certain this is necessary for you to achieve what you want ?

Can you please write out in plain English (yes, I know this can be difficult) what you are expecting to happen and how your blocks are supposed to work?

small clarification: Room=Lobby no difference at all i dont know why i keep switching between these two xD
Okay so here’s what this is about: an online lobby setup pre game. It’s a way to group people before entering a game. I hope thats clear. So simply put: a player enters a name and a room name to create a lobby or enter one. If he’s the first one, he’ll be the lobby leader and can start the game. That’s it for now. If ofcours a lobby name is taken or that name in that lobby is taken you can’t enter/create and so on… That’s it!
Also yes I forgot to set the room before the firebase get value… I think that’s what’s causing the issue
edit: nope