How do I get all data from firebase automatically in mit app inventor?

Use the dataChanged event block

See here