react-native-encrypted-storage icon indicating copy to clipboard operation
react-native-encrypted-storage copied to clipboard

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

Open akimabs opened this issue 3 years ago • 7 comments

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 avatar May 25 '22 05:05 akimabs

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

marry1822 avatar May 31 '22 11:05 marry1822

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

mkraina avatar Jun 22 '22 14:06 mkraina

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.

SMKH-PRO avatar Jul 07 '22 05:07 SMKH-PRO

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?

alfredarcifa avatar Dec 06 '22 10:12 alfredarcifa

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.

jayfeldman12 avatar Dec 08 '22 14:12 jayfeldman12

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

greulist137 avatar Apr 07 '23 18:04 greulist137

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)

tanaytanay avatar Jun 19 '23 20:06 tanaytanay