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

若如初见. 提交于 2020-01-04 09:16:12

问题


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



来源:https://stackoverflow.com/questions/42017520/ionic-2-storage-is-not-cleaning-up-on-uninstall-only-for-signed-apk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!