Prithivi Raj
Prithivi Raj

Reputation: 2736

Ionic 2 storage is not cleaning up on uninstall - Only for signed APK

I am using Ionic 2 storage for storing user credentials. On uninstalling the App, storage is not clearing so after re-installing, the App is picking up the user credential of the previous user.

This issue is occurring only in signed APKs. Tested on samsung on7 and lenova vibe models.

How to clear the storage on uninstall? what I am doing wrong?

Upvotes: 2

Views: 929

Answers (2)

Prithivi Raj
Prithivi Raj

Reputation: 2736

Set android:allowBackup to false in AndroidManifest to XML

Upvotes: 3

n00b
n00b

Reputation: 1852

you should not need to do anything for this to happen. This looks like a bug in ionic 2

Ionic forum discussion

Upvotes: 0

Related Questions