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: secure storage is persistent after reinstall #62

Open
EenPOOL opened this issue Nov 16, 2020 · 4 comments
Open

iOS: secure storage is persistent after reinstall #62

EenPOOL opened this issue Nov 16, 2020 · 4 comments

Comments

@EenPOOL
Copy link

EenPOOL commented Nov 16, 2020

Hi,

Is it an expected feature that the secure storage is persistent even after removing the app from the device?
It only happens on iOS, on Android it looks like the storage is removed togheter with the app?

Is it possible to remove the secure storage togheter with the app from the device?
Or any other workaround?

Thanks in advance!

@AE1NS
Copy link

AE1NS commented Dec 3, 2020

Same here. Any news on this?

@AE1NS
Copy link

AE1NS commented Jan 12, 2021

https://stackoverflow.com/questions/42431562/ios-10-3-beta-3-doesnt-persist-data-of-keychainitem#answer-43150729
"Since iOS 10.3 beta 6, the keychain is persisted."
So iOS handles it that way and its not a bug of this plugin.

@gpsimmo
Copy link

gpsimmo commented Feb 11, 2021

Any further updates on this?

@AE1NS
Copy link

AE1NS commented Feb 12, 2021

What update do you expect if its apples mechanism like this right now? Our 'solution' is to check if the non secure storage is empty and then we clear the secure storage afterwards. This works in our case, because we are filling the storage at the first app start. Something like:

if (!await Storage.get('IsInitalized')) {
    // first start => reset iOS secure storage, because it was not resetted on uninstall
    await SecureStorage.clear();
    await Storage.set('IsInitalized', true);
}

Its maybe not the best solution but its working for us.

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

3 participants