Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

How can i clear all data when ios app is uninstalled in react-native-encrypted-storage #87

Open
akimabs opened this issue May 25, 2022 · 7 comments

Comments

@akimabs
Copy link

akimabs commented May 25, 2022

I am using react-native-encrypted-storage. When I uninstall an app and then reinstall it, my old data still exists. How can I clear all data when uninstalling an ios app?

@akimabs akimabs changed the title how can i clear all data when ios app is uninstalled in react-native-encrypted-storage How can i clear all data when ios app is uninstalled in react-native-encrypted-storage May 25, 2022
@marry1822
Copy link

Same question, my app doesn't work correctly because of the old data. Please, help us to resolve this issue.

@mkraina
Copy link

mkraina commented Jun 22, 2022

https://github.com/emeraldsanto/react-native-encrypted-storage#note-regarding-keychain-persistence

@SMKH-PRO
Copy link

SMKH-PRO commented Jul 7, 2022

https://github.com/emeraldsanto/react-native-encrypted-storage#note-regarding-keychain-persistence

I have the same question, I have read the note regarding keychain but the documentation seems to be outdated because AppDelegate.m is no more in new react-native project, we have AppDelegate.mm (double "m") and the instructions is not working with the new AppDelegate.mm file.

@alfredarcifa
Copy link

https://github.com/emeraldsanto/react-native-encrypted-storage#note-regarding-keychain-persistence

I have the same question, I have read the note regarding keychain but the documentation seems to be outdated because AppDelegate.m is no more in new react-native project, we have AppDelegate.mm (double "m") and the instructions is not working with the new AppDelegate.mm file.

Does anyone have an update?

@jayfeldman12
Copy link

Putting the same code in the new AppDelegate.mm file should work, we have code based off that example in my project and it functions properly.

@greulist137
Copy link

Thankfully using the code references in that link above in the AppDelegate.mm file worked for me. Just tested it a few moments ago.

@tanaytanay
Copy link

tanaytanay commented Jun 19, 2023

I tried the above on iOS and Mac Catalyst. On iOS, it works fine. But on Catalyst if I drag and drop to Trash, the data still persists. However, if I use AppCleaner to delete the app, the persisted data gets deleted. Any idea what's causing this inconsistency?

(Using RN 0.71.11 on both platforms, with the AppDelegate.mm file)

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

No branches or pull requests

8 participants