I use keychain
to authenticate and then send location info to server in background.
But since kSecAttrAccessibleAlways
got depricated, I will have to use kSecAttrAccessibleAfterFirstUnlock
. This allows use of keychain
after first unlock after restarting phone.
Problem is if user restarts phone, and location changes before first unlock, then Authenticate will fail, since we can't fetch from keychain
.
How can I solve this problem. How to find keychain
cannot be accessed and stop authentication process.
Thanks.