I’m not sure if this is a bug or an undocumented limitation of Keychain.
I use Keychain to store API keys to access web services in scripts I can publish.
- iPad: define call
Keychain.set('api-key') - iPad: I can retrieve the key value with
Keychain.get('api-key') - iPhone:
- open passwords in Settings,
- the entry for ‘api-key’ is visible with proper value
- iPhone:
- call
Keychain.contains('api-key')-> false (unexpected!) - call
Keychain.get('api-key')>> exception, this one is expected.
- call
- iPhone: set the entry again with Keychain.set()
- iPhone:
- call
Keychain.contains('api-key')-> true - call
Keychain.get('api-key')-> key value
- call
This can be reproduced easily and is not limited to first access to the
Did I miss something ?
(running iOS 14)