-
-
Notifications
You must be signed in to change notification settings - Fork 532
Open
Description
After upgrading react-native-keychain from v8.2.0 directly to v10.0.0, the app builds successfully but crashes on Android when trying to run the app with the following error::
java.lang.IllegalStateException: There are multiple DataStores active for the same file: /data/user/0/<package>/files/datastore/RN_KEYCHAIN.preferences_pb. You should either maintain your DataStore as a singleton or confirm that there is no two DataStores active on the same file (by confirming that the scope is cancelled).
This happens when using any KeychainModule methods that read or write secure credentials.
To Reproduce
- Upgrade react-native-keychain from v8.2.0 to v10.0.0.
- Run the app on Android.
- Call Keychain.setInternetCredentials() or Keychain.getInternetCredentials().
- Observe the above exception being thrown
Environment:
- react-native-keychain version: 10.0.0
- React Native version: 0.77.1 (old architecture)
- Android API Level: 35.0.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels