Hello friends, in this tutorial you will learn how to enable firebase catching (Persistent data). This is essential if you want to load data for offline usage or just keep your application always alive with content to chew on. I recommend for all chat projects, e-commerce and many more.
Enable persistence with this code:
FirebaseDatabase.getInstance().setPersistenceEnabled(true);
You can also exclude some Firebase paths from persistence with this code:
DatabaseReference scoresRef = FirebaseDatabase.getInstance().getReference("scores");
scoresRef.keepSynced(true);
//scores is db path or node
For the fulll documentation and insights go here:
https://firebase.google.com/docs/data...
Drop some love and comments if necessary