Scenario
I have released my app on play store which uses
- Firebase Realtime database
- Has set setPersistenceEnabled(true) for my each Firebase database.
After tracking crashes for few weeks, I encountered this crash.
After bit research, I came to conclusion that inconsistency in data cached by Firebase Database's data persistence can be the reason for this crash.
So I turned off data persistence by calling FirebaseDatabase.getInstance().setPersistenceEnabled(false);
for all my databases.
With above changes in code, I released update for my app on Play Store.
But the users (on the new version with persistence disabled) are still getting the crash.
So my queries are
1) Will the app use persisted data even after turning off persistence?
2) Do the user need to clear the app data which will eliminate the crash? (as inconsistent/corrupted cached data is the reason behind the crash)
below are the gradle dependencies in my app related to firebase database
compile 'com.google.firebase:firebase-database:12.0.1'
compile 'com.firebaseui:firebase-ui-database:3.3.0'