pradeep1991singh/react-native-secure-key-store

iOS Keychain wiped due to existing rdar bug with NSUserDefaults

Opened this issue · 0 comments

Hello,

We have observed a significant problem with the iOS keychain being wiped incorrectly due to an issue in the
handleAppUninstallation in RNSecureKeyStore.m.

Due to the following (very old) open rdar, http://www.openradar.me/16761393, he have ran into a situation where the NSUserDefaults property RnSksIsAppInstalled is cleared and when the app is re-launched, the keychain is incorrectly wiped.

We have currently patched the function to look at a different flag, which we store in AsyncStorage instead of NSUserDefaults and pull it out on the native side, but we wanted to report this to see if others are experiencing this unexpected loss of data and maybe discuss potential solutions.