SmileTouchID
SmileTouchID copied to clipboard
Locked screen can't access Keychain
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.
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.
Hi @liu044100 it's on the write method, i'll make a pull request with the fix.