I am stuck at understanding the concept of making Firebase App Offline. As per the documentation, we need to call:
FirebaseDatabase.getInstance().setPersistenceEnabled(true);
But where should we call this? Is it should be used in every Activity of the Application? Because, when I am using this inside my Application class onCreate() method, my app crashes continuously.
So what is the best practice we should follow to make our app offline.
One more doubt is the difference between the above one and DatabaseReference.keppSynced(true);