Optimize actions of Firebase Realtime Database and Firebase Storage

0

How can I optimize the user experience and application fluency when I am, for example, reading data from Firebase Database or even downloading Files from Storage? Using runnable's to handle processes or are there other more efficient ways to do this?

    
asked by anonymous 17.07.2018 / 20:44

1 answer

1
So, unfortunately when we have to use data coming from the WEB there is no way to maintain a fluidity within the application if the user's internet is not fast, but when I work with firebase we usually have the listeners listening to the google server and when it changes it changes the user interface, if it is the first time the user is entering that screen, it may be good to hold the user interface until the required information is loaded. Another good thing to do is to have the persistence of the firebase data on the device itself, even the google SDK does this management, just look at the firebase or firestore documentation, it depends on which one you are using!

    
26.07.2018 / 19:49