Comments (3)
hi! See #32
Without more information it'll hard to help
from react-native-keychain.
Actually I know about it. I am more curious about that error. What goes wrong that it occurs?
from react-native-keychain.
If you want to understand it head over to the linked apple dev forum thread https://forums.developer.apple.com/thread/60617
To sum it up: Seems to be a bug that only happens if there is no entitlement file. The "Share keychain" option seems to be required only if there is not yet an entitlements file.
See the cited answer from the forum linked above
As others have reported, my app would always fail on SecItemAdd() with -34018 on the simulator but work fine on a device. I was about to add the 'Share keychain' entitlement as a workaround but noticed that Xcode 8 was prompting me to add the 'Push Notification' entitlement (that entitlement is now required to use push notificaitons on iOS 10 as the permission is taken from the entitlement rather than the provisioning profile in earlier versions). This created an entitlements file because the app didn't have one before. And without adding the 'Share keychain' entitlement the app suddenly started working! No more -34018. I've reverted back and forth and it seems pretty deterministic: no entitlements file gives -34018; entitlements file works.
So, my testing seems to show that SecItemAdd fails if there's no entitlement file, and works if there is one! Perhaps all the developers adding 'Share keychain' entitlement never had an entitlement file before and it is the creation of the file rather than the specific entitlement that fixes the problem?
from react-native-keychain.
Related Issues (20)
- Encrypt and decrypt failing on latest Samsung OS HOT 11
- Warning when using SetGenericPassword with service HOT 2
- No podspec found for `RNKeychain`
- Fingerprint Bypass using Frida and Objection techniques HOT 1
- Using it together with native iOS project HOT 2
- Android crash from adding react-native-keychain package HOT 1
- Unrecognized platform name visionOS error HOT 8
- iOS & android keychain items are not erased when the app is uninstalled HOT 1
- Pods install failed with Invalid `RNKeychain.podspec` file: undefined method `visionos' for #<Pod::Specification name="RNKeychain" HOT 5
- App crash on launch - Only happens on Huawei devices
- Replace `SharedPreferences` with `DataStore` Preferences on Android HOT 2
- Cold start on android took 5-10 seconds longer than before the library update HOT 11
- Example project not building iOS HOT 3
- [RN-Android]: Not able to retrieve credentials from App B after storing credentials from App A. HOT 1
- Android build failed after upgrading to java 21
- Issue building app 8.1.2, 8.1.2 and 8.2.0 HOT 1
- Understanding the key store access life cycle.
- [Enhancement] Support for Passkey
- UI animation freezing when calling any `set` functions in Android HOT 1
- Does React Native Keychain use iOS Keychain and Android Keystore under the hood? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-keychain.