I do not think it is necessary to show them code to help me with the following:
I have a login with firebase, and I use disk persistence for when I do not have an internet connection and so I can continue using my app, once I log in, the user remains active even if I close the application, because when I'll open the application again without needing to register again, that's fine, the problem is that if I post:
"FirebaseDatabase.getInstance().setPersistenceEnabled(true);"
where I verify the login, each time you close the app and enter will verify the login and will call each time:
"FirebaseDatabase.getInstance().setPersistenceEnabled(true);"
which gives an error since it can only be called once.
How could I solve it?