I have the following data structure in my current Firebase real-time DB:
public class E {
public int x;
public int y;
public int x;
}
This database is currently in use by my Android application which is already used by users in production.
I want to add a new member to the class (String z) as shown below:
public class E {
public int x;
public int y;
public int x;
public String z;
}
When using an old version of the app I see this error in logcat:
W/ClassMapper: No setter/field for z found on class com.me.you.E
And the application is stuck.
I have included a Database version check before the application starts to guide users to update their application, but was hoping not to need it in this specific case.
Is there any versioning possible on the data? Any other suggestion?