[MOD-2373] iOS: TouchID keychain-access crashes on iPhone5 C with iOS 8
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-11-02T16:04:02.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Ti.TouchID 2.1.4 |
Components | TouchID |
Labels | n/a |
Reporter | Nikita Radaev |
Assignee | Hans Knöchel |
Created | 2017-11-02T14:23:53.000+0000 |
Updated | 2018-08-06T17:49:17.000+0000 |
Description
Encountered crashes while testing TouchID implementation. Same exact code works on iPhone 5c with iOS 10.
Sample code:
var touchIdKeychainItem = TouchID.createKeychainItem({
identifier: "touchid",
accessibilityMode:TouchID.ACCESSIBLE_WHEN_PASSCODE_SET_THIS_DEVICE_ONLY,
accessControlMode: TouchID.ACCESS_CONTROL_TOUCH_ID_CURRENT_SET,
});
keychainItem.fetchExistence(function(e){
if(!e.exists){
Ti.API.info(JSON.stringify(e));
if(typeof args.failure === 'function'){
args.failure.call();
}
}
else{
args.success.call();
}
});
Keychain-access requires iOS 9 or later to make use of all available capabilities.
kSecUseAuthenticationUIFail
is the bad-boy (iOS 9 only). We can guard that!thanks for the quick update Hans!
Please try 2.1.4 Beta that includes this fix: https://github.com/appcelerator-modules/ti.touchid/releases/tag/ios-2.1.4
Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.