Ionic 2 storage is not cleaning up on uninstall -

2019-07-11 23:22发布

问题:

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?

回答1:

Set android:allowBackup to false in AndroidManifest to XML



回答2:

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

Ionic forum discussion