Comments (4)
try this code in AppDelegate.m
didFinishLaunchingWithOptions
if ([[NSUserDefaults standardUserDefaults] boolForKey:@"HAS_RUN_BEFORE"] == NO) {
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"HAS_RUN_BEFORE"];
NSArray *secItemClasses = [NSArray arrayWithObjects:
(__bridge id)kSecClassGenericPassword,
(__bridge id)kSecClassInternetPassword,
(__bridge id)kSecClassCertificate,
(__bridge id)kSecClassKey,
(__bridge id)kSecClassIdentity,
nil];
for (id secItemClass in secItemClasses) {
NSDictionary *spec = @{(__bridge id)kSecClass: secItemClass};
SecItemDelete((__bridge CFDictionaryRef)spec);
}
}
from react-native-sensitive-info.
It's working!
Thank you!
try this code in
AppDelegate.m
didFinishLaunchingWithOptions
if ([[NSUserDefaults standardUserDefaults] boolForKey:@"HAS_RUN_BEFORE"] == NO) {
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"HAS_RUN_BEFORE"];
NSArray *secItemClasses = [NSArray arrayWithObjects:
(__bridge id)kSecClassGenericPassword,
(__bridge id)kSecClassInternetPassword,
(__bridge id)kSecClassCertificate,
(__bridge id)kSecClassKey,
(__bridge id)kSecClassIdentity,
nil];
for (id secItemClass in secItemClasses) {
NSDictionary *spec = @{(__bridge id)kSecClass: secItemClass};
SecItemDelete((__bridge CFDictionaryRef)spec);
}
}
from react-native-sensitive-info.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from react-native-sensitive-info.
any improvement ??
from react-native-sensitive-info.
Related Issues (20)
- [IOS] Protected data not available yet. Retry operation HOT 16
- Android: Error in secure save : [Error: Failed to obtain information about key] HOT 1
- Storage size HOT 3
- is ios Keychain sandboxed? HOT 1
- Adding `kSecAttrSynchronizable` options throws error. HOT 1
- Remember fingerprint for X minutes HOT 1
- Static Values for Cryptography Which Exposes Data to Easy Decryption HOT 3
- v6.0.0-alpha10: update latest alpha build on npm? HOT 1
- Simple solution to the inconsistent return of getAllItems() HOT 1
- doesn't work on react-native 0.70rc2 / Mac catalyst / os error 34018 HOT 1
- Security issues HOT 3
- Android: Attempt to invoke interface method on a null object reference (patch-package fix available) HOT 1
- The credentials are getting lost on android 10 on app uninstall or clearing the app data. HOT 1
- Is this thing on? HOT 1
- Release version v6 on NPM package HOT 1
- I am facing issue with this package in windows system on some system when key is not available and when i try to call getItem method it's not even throwing error it will result in white screen issue. HOT 1
- getAllItems works without encryption but getItem does not HOT 1
- Types for getAllItems is wrong HOT 1
- Got the DecryptionFailed error on Android with Touch ID
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-sensitive-info.