flutter_secure_storage icon indicating copy to clipboard operation
flutter_secure_storage copied to clipboard

安卓卸载应用存储的信息会一并删除,ios不行,当app卸载后,重新安装依旧可以找到存储在钥匙串里的信息,请问怎么可以解决ios端的问题

Open kinmonkey7 opened this issue 4 months ago • 3 comments

static const _storage = FlutterSecureStorage( iOptions: IOSOptions( accessibility: KeychainAccessibility.unlocked_this_device, ), aOptions: AndroidOptions( encryptedSharedPreferences: true, ), );有没有好的方法可以解决ios的问题

kinmonkey7 avatar Aug 06 '25 14:08 kinmonkey7

应用运行时创建一个文件,把应用删除文件也会被删除,在每次运行时判断这个文件是否存在,不存在则是刚刚安装了应用,这时就可以把机密存储全部清除再继续应用。

codelovercc avatar Aug 20 '25 01:08 codelovercc

@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.

a1573595 avatar Sep 15 '25 07:09 a1573595

⚠️ 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.

github-actions[bot] avatar Nov 15 '25 02:11 github-actions[bot]

Duplicate of #897

juliansteenbakker avatar Dec 11 '25 19:12 juliansteenbakker