How i can get tags and values in firebase and make compare?

I mean the structure of database is correct ?
And when i login in user i get all data for this user by put project bucket as global variable
But how if i want in same screen fetch all data for other users ?

Yes - it will work
Yes - if you use the blocks I showed for a user
Use the blocks I showed for all users

We had a very nice school bus tutorial in the Firebase FAQ, but it was monetized to death.

1 Like

Can you put the exactly link

I need the idea what must after student login screen how get location of his driver and track it ?

Here's a posh tutorial on bus tracking.

Maybe it has parts you can use.

1 Like


Inked1_LI

hello everyone i have this code above store tags and values in firebase i want to know how i can get tags and values for all users

I believe you got the anwser in ..

is users a reserve word? because i didnt add anything named users

In a previous post you have Users as a top line tag:

1 Like

yes i had users
now no
like this

i need some one help me i am new in mit app inventor

Please hide sensitive infos such as emails and firebase's url

1 Like

I would put them all back under a topline tag called Users. This will make it easier to access just this data, and reduce confusion with any other topline tags with different content that you may wish to add.

1 Like

If you are doing a school bus app, ask yourself how to track a bus that has not yet picked up any students.

1 Like

Did you mean same first structure ?
Use projectbucket as users then put inside it user

Yes, like you had before

Good i I did this befor
But in screen login
When student login
how i can get values for this student who logged in?

And then how i can get Latitude and Longitude for his bus ?

This should give you an idea of what you can do:

Firebase data:

image

Blocks:

Screen:

image

This is a different question....

Assuming the student is signed in to the app, and they are on the bus, they should be getting their latest position. Their app should then be updating their firebase data with their latest position (LocationChanged event)