[Solved] How can i make the app work offline with Firebase database


Simply activate offline persistens as specified in the official documentation:

Firebase applications work even if your app temporarily loses its network connection. You can enable disk persistence with just one line of code:

FirebaseDatabase.getInstance().setPersistenceEnabled(true);

solved How can i make the app work offline with Firebase database