As the title says, I use Firebase and I use the instruction "setPersistance" to save the user data offline. I've wrote this instruction in the splash screen of my app, this way I'm sure that I never call other instance of Firebase before. But I don't know why it crash on some devices, the log says:
Calls to setPersistenceEnabled() must be made before any other usage of FirebaseDatabase instance.
Exist some try catch() to avoid this crashes?