在应用程序卸载时没有清除LocalStorage - Android 6 [英] LocalStorage not being cleared on app uninstall - Android 6

查看:201
本文介绍了在应用程序卸载时没有清除LocalStorage - Android 6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到一个问题,当我卸载应用程序(离子应用程序)时,localstorage不会被清除。它只发生在我的带有Android 6的三星S7 Edge上(至少是我唯一拥有Android 6的设备)。

i'm having a problem where the localstorage doesn't get cleared when i uninstall the app (ionic app). It's only happening on my Samsung S7 Edge with Android 6 (at least is the only device with Android 6 that i have).

清除它的唯一方法是清除它通过设备的应用程序管理器进行数据/缓存...

The only way of clearing it is by Clearing Data/Cache through the Application Manager of the device...

它在其他设备上正常工作......由于localstorage实现非常简单,我不知道为什么这样做正在发生...

It works properly on other devices... Since the localstorage implementation is pretty straightforward I have no clue why this is happenning...

任何想法?

推荐答案

Android 6有自动备份。

Android 6 has automatic backup on.

您是否尝试设置 android:allowBackup =false android:fullBackupContent =false在manifest.xml中?

Did you try setting android:allowBackup="false" and android:fullBackupContent="false" in your manifest.xml?

android:allowBackup android:fullBackupContent 是<$的属性应用程序的manifest.xml中的c $ c>< application /> 。

在离子2中,您也可以在platforms文件夹下找到它。
如果您不希望备份数据或者想要包含或排除某些资源,可以使用这些属性。

In ionic 2, you can find this under platforms folder also. You can use these properties in case, if you don't want your data backed up or if you want to include or exclude some resources.

我也是在联想Vibe手机上挣扎了很长时间。这解决了它。

I also struggled with it for a long time on Lenovo Vibe phone. This solved it.

这篇关于在应用程序卸载时没有清除LocalStorage - Android 6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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