You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On some Android devices (for example, a Xiaomi Redmi 9T), when an app is put in background and opened back after some time (2-3 hours averagely) this exception is thrown and it is impossible to access the database until you close completely the app and open it back.
On the devices that I have encountered the problems, energy saving mode was enabled. I don't know if it may be related.
Originally, in the setup I have put only the WAL mode enabling command, but after reading online some possible solutions I've added the other commands.
On some Android devices (for example, a Xiaomi Redmi 9T), when an app is put in background and opened back after some time (2-3 hours averagely) this exception is thrown and it is impossible to access the database until you close completely the app and open it back.
On the devices that I have encountered the problems, energy saving mode was enabled. I don't know if it may be related.
This is the code that opens the connection:
Originally, in the setup I have put only the WAL mode enabling command, but after reading online some possible solutions I've added the other commands.
This error seems related only to the WAL mode, accordingly to official documentation: https://www.sqlite.org/rescode.html#busy_recovery
I instantiate the database connection using Riverpod.
Can someone help me with this problem?
The text was updated successfully, but these errors were encountered: