This problem occurs when I run the app on a physical device (Android 12).
Searching in the web I found someone with the same problem.
Note: I solved this by setting the property " android:allowBackup="false"" in AndroidManifest.xml
To Reproduce
here is the configuration file of capacitor:
export const config: CapacitorConfig = { appId: 'test.sqlite' appName: 'sqlite', webDir: 'www', bundledWebRuntime: true, plugins: { CapacitorSQLite: { androidIsEncryption: true, }, }, }; Additional context
So if in the configurations capacitor androidIsEncryption has true value,
when the application is built the AndroidManifest is generated with the property "android:allowBackup="true" by default,
this configuration cause the error reported, to work around I had to set the android:allowBackup="false" property.
Hi,
This problem occurs when I run the app on a physical device (Android 12).
Searching in the web I found someone with the same problem.
Note: I solved this by setting the property " android:allowBackup="false"" in AndroidManifest.xml
To Reproduce here is the configuration file of capacitor:
export const config: CapacitorConfig = { appId: 'test.sqlite' appName: 'sqlite', webDir: 'www', bundledWebRuntime: true, plugins: { CapacitorSQLite: { androidIsEncryption: true, }, }, };
Additional context So if in the configurations capacitor androidIsEncryption has true value, when the application is built the AndroidManifest is generated with the property "android:allowBackup="true" by default, this configuration cause the error reported, to work around I had to set the android:allowBackup="false" property.