Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS: storage does not get cleared on app uninstall #31

Closed
tjblackheart opened this issue Jan 22, 2021 · 5 comments
Closed

IOS: storage does not get cleared on app uninstall #31

tjblackheart opened this issue Jan 22, 2021 · 5 comments

Comments

@tjblackheart
Copy link

See title. On testing the app on IOS 11 out of Testflight the storage does not get cleared after an app uninstall and all data still is there if you install again. I suppose that's an IOS thing ... is there a way to force this? Works fine on Android devices though. The data in the store is just one entry as a big(gish) JSON string.

@zbarbuto
Copy link

This is just part of how keychain works on iOS.

You can update your app delegate to remove keys on first launch.

jrendel/SwiftKeychainWrapper#98 (comment)

@tjblackheart
Copy link
Author

Oh, thanks for the heads up. Closing this.

@dahyui
Copy link

dahyui commented Mar 10, 2021

@tjblackheart Did you manage to get the wrapper to delete on first launch? I added the check as mentioned in the comment but nothing gets delete, so not sure if I'm missing something else?

@tjblackheart
Copy link
Author

Hey @dahyui, I have no IOS machine for developing on, so I did a similar workaround: In the (unencrypted) capacitor store I check for a "first_run" key, if that's not there, I just force delete everything and then set it. Works well enough for me but probably doesn't answer your question, sorry about that.

@bialabs
Copy link

bialabs commented Jun 24, 2022

This is just part of how keychain works on iOS.

You can update your app delegate to remove keys on first launch.

jrendel/SwiftKeychainWrapper#98 (comment)

Tried but removeAllKeys() returns false and Keychain is not cleared
Any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants