SmileTouchID icon indicating copy to clipboard operation
SmileTouchID copied to clipboard

Locked screen can't access Keychain

Open artur opened this issue 8 years ago • 2 comments

There seems to be an error/not implemented behavior that it fails to access keychain when the screen is locked.

Scenario: app receives push and wakes up and the smileauth starts.

A workaround is to use [attributes setObject: (__bridge id)kSecAttrAccessibleAfterFirstUnlock forKey: (__bridge id)kSecAttrAccessible];

although I can't understand where to insert this key.

artur avatar Jan 31 '17 19:01 artur

Hi, @artur

Sorry about that I don't fully understand your question.

Based on this code: [attributes setObject: (__bridge id)kSecAttrAccessibleAfterFirstUnlock forKey: (__bridge id)kSecAttrAccessible];

I think maybe this is the place where to insert this key.

liu044100 avatar Feb 01 '17 09:02 liu044100

Hi @liu044100 it's on the write method, i'll make a pull request with the fix.

artur avatar Feb 01 '17 14:02 artur