简体   繁体   English

Ionic 应用程序在卸载后不会删除本地数据

[英]Ionic app does not remove local data after uninstalling

I have found a solution for Android but not able to get one for iOS.我找到了 Android 的解决方案,但无法为 iOS 找到一个解决方案。

  • I logged into my app我登录了我的应用程序
  • Perform some tasks that save data in local storage执行一些将数据保存在本地存储中的任务
  • Go to Home and uninstall the app Go 到主页并卸载应用程序
  • Install App again重新安装应用程序
  • All previously stored data reappear所有先前存储的数据重新出现

It should remove all data upon uninstallation.它应该在卸载时删除所有数据。

If you are using Cordova, add the following in your config.xml -如果您使用的是 Cordova,请在config.xml中添加以下内容 -

For iOS对于 iOS

Inside <platform name="ios"> - <platform name="ios">内部 -

<preference name="BackupWebStorage" value="none" />

Default value is cloud .默认值为cloud https://cordova.apache.org/docs/en/latest/config_ref/index.html https://cordova.apache.org/docs/en/latest/config_ref/index.html

For Android适用于 Android

Inside <platform name="android"> -里面<platform name="android"> -

<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
    <application android:allowBackup="false" android:fullBackupContent="false" />
</edit-config>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 iOS用户如何在卸载应用程序后删除钥匙串 - How can a iOS user remove keychain after uninstalling app 卸载应用程序不会删除应用程序组数据。我是否必须手动删除应用程序组容器及其内容? - Uninstalling app not delete app group data .Do I have to remove app group container and it's content manually? Flutter 安全存储 iOS:即使卸载应用程序后数据仍然存在 - Flutter Secure Storage iOS: data still persists even after uninstalling the app 卸载应用程序时如何清除所有数据 - how to clear all data while uninstalling the app 卸载应用程序时如何从 Apple ID 登录中删除应用程序 - How to remove the app from the Apple ID logins when uninstalling the app 卸载应用后,apns http2 api未返回状态410 - apns http2 api not returning status 410 after uninstalling app 卸载并重新安装我的应用程序后无法恢复 flic 按钮 - Can't restore flic buttons after uninstalling and reinstaling my app 卸载设备上的ios应用后,如何在ios中保留identifierForVendor? - How to preserve identifierForVendor in ios after uninstalling ios app on device? 在不卸载应用程序的情况下删除iOS模拟器上的应用程序数据? - Delete application data on iOS simulator without uninstalling app? App Clip Local Experience 扫描后显示“找不到可用数据” - App Clip Local Experience shows "No usable data found" after scan
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM