Cordova-sqlite-storage: Uninstall app database still persist

Created on 6 Jan 2017  路  4Comments  路  Source: storesafe/cordova-sqlite-storage

I read the below issue. It seems that after I uninstall the app, the database should go away. However, it is still there. Can you help me figure it out? I'm using $cordovaSQLite.openDB

https://github.com/litehelpers/Cordova-sqlite-storage/issues/285

question doc-todo testing user community help discussion doc-pitfall doc-general doc-extra doc-clarity

Most helpful comment

I am experiencing the same issue. When this plugin is used on Android 8.1 (Pixel 2), if you uninstall the app, the next time the app is installed data is still around.

Under Android this might be because of automatic data backup since version 6.0. Take a look at this:

https://stackoverflow.com/a/33176898/1417919

All 4 comments

Please give a more complete reproduction scenario. This should never be the case on the mobile platforms.

On Windows and macOS ("osx") DESKTOP installations the database does NOT seem to go away if you uninstall the app.

I am experiencing the same issue. When this plugin is used on Android 8.1 (Pixel 2), if you uninstall the app, the next time the app is installed data is still around.

I am experiencing the same issue. When this plugin is used on Android 8.1 (Pixel 2), if you uninstall the app, the next time the app is installed data is still around.

Under Android this might be because of automatic data backup since version 6.0. Take a look at this:

https://stackoverflow.com/a/33176898/1417919

https://stackoverflow.com/a/33176898/1417919

That link looks right and includes quick directions how to disable this behavior, thanks @astinka.

The auto backup will affect this plugin since it uses the directory from android,content.Context.getDatabasePath(java.lang.String), which is backed up according to https://developer.android.com/guide/topics/data/autobackup#Files.

Was this page helpful?
0 / 5 - 0 ratings