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


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)

Can you put store value code ?

Sorry, do not understand what you mean?

Did you know you are allowed to add extra Firebase components with different Buckets (Users, Buses, Drivers, etc.) to facilitate tracking those separately?

Rename the components in the Designer to remind you of what they manage (FireBaseUsers, FireBaseBuses, etc.)

1 Like

I store tags and values like this
Is it correct ?

Can you explain with example ?

Unfortunately, I have none in stock.

1 Like