Today’s lesson is courtesy of Rizwan Sattar, who writes:
If you’re building a notification service or content extension, keep in mind that these extensions will run even after a device restart, before the first unlock. Normally Apple recommends to set your Keychain items as
kSecAttrAccessibleAfterFirstUnlockfor “items that need to be accessed by background applications”. When you’re accessing the keychain for things in your notification extensions, you’ll want to set it to
kSecAttrAccessibleAlwaysThisDeviceOnly, etc instead.
Comments are closed.