I am trying to turn off persistence for an activity but I am getting the message above. Here is how I am configuring the settings in onCreate():
mFirestore = FirebaseFirestore.getInstance();
FirebaseFirestoreSettings settings = new FirebaseFirestoreSettings.Builder().setPersistenceEnabled(false).build();
mFirestore.setFirestoreSettings(settings);
Where do I call this if not right after?
Looks like you have to set the settings in your very first activity when your app opens and have them persist throughout.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With