I am experiencing an issue with an app that is published on the play store:
After a new update is released, some users cannot use the app properly, until they delete the app and reinstall it from scratch. I cannot reproduce this issue and I don't have any error logs.
The app features an internal SQLite database, which will be wiped everytime a new update is released. Also it implements a REST client via okhttp library.
I feel like I am missing something in the update process, but I am not aware of anything else that could go wrong. It seems like there could be issues with the DB, but it will be wiped completely. Also the REST client might be a problem, but I couldn't imagine this actually being an issue. There are no other libraries that seem relevant to this problem.
I am looking forward to any suggestions, thank you,
J.V.
Edit: the code segment that is used for SQLite handling
public RfidTagDbHelper(Context context) {
super(context, DATABASE_NAME, null, DATABASE_VERSION);
}
public void onCreate(SQLiteDatabase db) {
db.execSQL(SQL_CREATE_ENTRIES);
}
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
db.execSQL(SQL_DELETE_ENTRIES);
}
public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {
onUpgrade(db, oldVersion, newVersion);
}
SQL_DELETE_ENTRIES contains a piece of SQL code that drops all tables if existing, CREATE_ENTRIES does the opposite