ios - 如何检测 iOS 钥匙串项目是否尚不可用?(首次解锁前)
问题描述
在设备解锁之前kSecAttrAccessibleAfterFirstUnlock
在后台访问项目时是否出现特定错误或行为?
https://developer.apple.com/documentation/security/ksecattraccessibleafterfirstunlock?language=objc
苹果表示:
对于需要由后台应用程序访问的项目,建议使用此选项。
但是,在某些情况下,系统仍然可以在此之前启动应用程序,不是吗?
解决方案
据我所知,返回“错误代码-25308 (errSecInteractionNotAllowed)”,但我还无法验证。
推荐阅读
- selenium-webdriver - 在 Selenium 中截图
- pyspark - 在 sparksql 中获取年月日期格式
- r - 使用 R 和 ggplot2 用自然颜色绘制 naturalearth RasterLayer
- java - 解码 GSON 模型子类
- swift - 如何制作一个在组合中发送多个值的发布者
- css - 弹性容器中弹性项目的 100% 总宽度,中间有间隙
- sql - SQL:我可以避免在联合中重新计算查询吗?
- typescript - 为什么比较两个接口时extends返回false?
- android - 如何使白色按钮在白色图像上可见
- amazon-web-services - AWS API Gateway - 映射由破折号分隔的动态 URL