Titanium JIRA Archive
Appcelerator Modules (MOD)

[MOD-2373] iOS: TouchID keychain-access crashes on iPhone5 C with iOS 8

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2017-11-02T16:04:02.000+0000
Affected Version/sn/a
Fix Version/sTi.TouchID 2.1.4
ComponentsTouchID
Labelsn/a
ReporterNikita Radaev
AssigneeHans Knöchel
Created2017-11-02T14:23:53.000+0000
Updated2018-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();
		}
	});

Comments

  1. Hans Knöchel 2017-11-02

    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!
  2. Nikita Radaev 2017-11-02

    thanks for the quick update Hans!
  3. Hans Knöchel 2017-11-02

    Please try 2.1.4 Beta that includes this fix: https://github.com/appcelerator-modules/ti.touchid/releases/tag/ios-2.1.4
  4. Eric Merriman 2018-08-06

    Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.

JSON Source