Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninstall app database still persist #612

Open
TommyQu opened this issue Jan 6, 2017 · 4 comments
Open

Uninstall app database still persist #612

TommyQu opened this issue Jan 6, 2017 · 4 comments

Comments

@TommyQu
Copy link

TommyQu commented Jan 6, 2017

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

#285

@brodycj
Copy link
Contributor

brodycj commented Jan 10, 2017

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.

@dylanvdmerwe
Copy link

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.

@astinka
Copy link

astinka commented Jan 16, 2019

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

@brodycj
Copy link
Contributor

brodycj commented Jan 16, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants