Optimize Firebase Realtime Database and Firebase Storage actions

Asked

Viewed 195 times

0

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

2 answers

1


So unfortunately when we have to utilize 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 working with firebase we usually have listeners listening to the google server and when it is changed it changes the user interface, if it is the first time the user is entering that screen then maybe it is good to hold the user interface until loading the necessary information. Another good thing to do would be to have the persistence of firebase data on the device itself, including the google SDK itself does this management, just look at the documentation of firebase or firestore, depends on which one is using!

-1

It is interesting to keep the user informed that the app is being loaded. You can put a Load, so he does not think that the application has crashed. As soon as the data is received, you hide it and arrow the data.

Facebook uses this medium: https://medium.com/mindorks/android-design-shimmer-effect-fa7f74c68a93

But you can use custom progressiBar or API’s http://www.zoftino.com/android-progressbar-and-custom-progressbar-examples

Especially, I really like this one: https://github.com/EyalBira/loading-dots

Browser other questions tagged

You are not signed in. Login or sign up in order to post.