安卓卸载应用存储的信息会一并删除,ios不行,当app卸载后,重新安装依旧可以找到存储在钥匙串里的信息,请问怎么可以解决ios端的问题
static const _storage = FlutterSecureStorage( iOptions: IOSOptions( accessibility: KeychainAccessibility.unlocked_this_device, ), aOptions: AndroidOptions( encryptedSharedPreferences: true, ), );有没有好的方法可以解决ios的问题
应用运行时创建一个文件,把应用删除文件也会被删除,在每次运行时判断这个文件是否存在,不存在则是刚刚安装了应用,这时就可以把机密存储全部清除再继续应用。
@kinmonkey7 This is not a bug. If you want to delete the data after deleting the app, you should not use this package. It is implemented using Keychain on the iOS side, which is its feature.
⚠️ This issue has been marked as stale because it has been open for 60 days with no activity.
If this issue is still relevant, please comment to keep it active. Otherwise, it will be closed in 60 days.
Duplicate of #897