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

User attributes not getting deleted after app uninstall #118

Closed
Gopats opened this issue Jul 15, 2017 · 3 comments
Closed

User attributes not getting deleted after app uninstall #118

Gopats opened this issue Jul 15, 2017 · 3 comments

Comments

@Gopats
Copy link
Collaborator

Gopats commented Jul 15, 2017

When user uninstalls the application, the user profile is not getting deleted from phone memory. When user reinstalls app, the app uses old user data to try and log in instead of asking user to enter login credentials.

@gauravr007
Copy link
Collaborator

When the app is uninstalled, the app data that was stored via SharedPrefernces, does get deleted.
I believe the problem here must have been that auto-backup on the phone backed up the data for the app to the cloud and restored it on the phone when the app was installed again.

See - https://stackoverflow.com/questions/15873066/how-to-remove-shared-preference-while-application-uninstall-in-android

and https://developer.android.com/guide/topics/data/backup.html
https://developer.android.com/guide/topics/data/autobackup.html

Apps that target Android 6.0 (API level 23) or higher are automatically enabled for Auto Backup.

Will fix this bug by disabling backup for the app in the AndroidManifest.xml.

@gauravr007
Copy link
Collaborator

We can later enable backup and pick what app data should and should not be backed up

@gauravr007
Copy link
Collaborator

Resolved via commit a558da2

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

No branches or pull requests

2 participants