卸载时不会清理Ionic 2存储 - 仅适用于已签名的APK [英] Ionic 2 storage is not cleaning up on uninstall - Only for signed APK

查看:137
本文介绍了卸载时不会清理Ionic 2存储 - 仅适用于已签名的APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Ionic 2存储来存储用户凭据。在卸载应用程序时,存储未清除,因此在重新安装后,应用程序将获取上一个用户的用户凭据。

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.

此问题仅在签名时发生的APK。在三星on7和lenova vibe型号上进行测试。

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?

推荐答案

在AndroidManifest中将android:allowBackup设置为false为XML

Set android:allowBackup to false in AndroidManifest to XML

这篇关于卸载时不会清理Ionic 2存储 - 仅适用于已签名的APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆