This is how i try to get the all data out from firebase and display in tableview by using List, but the problem is how to synced data if firebase data changed. Besides, the block(code) look like too many and complicated.
Do you guys have any ideas or suggestions to solve??
Thanks in advance
You will need to refresh the Tableview when you get new data with the DataChanged event.
Note: only changes made by the app will be reflected with DataChanged, any changes by other applications or directly in the Firebase Console do not get captured by the DataChanged event. In such an eventuality, then you do need to use a timer or other app event, the call back ALL the data (this could prove expensive with a popular app....)