Hello friends, in this tutorial I will show you how to enable firebase persistence in your Firebase enabled project. This will come in handy in your chat, e-commerce and other projects that require that data is cached for immediate availability even in offline state.
Code in FirebaseHandler class:
FirebaseDatabase.getInstance().setPersistenceEnabled(true);
Documentation:
https://firebase.google.com/docs/data...