【问题标题】:How to detect if iOS Keychain items not available yet? (before first unlock)如何检测 iOS 钥匙串项目是否尚不可用? (首次解锁前)
【发布时间】:2019-09-10 01:21:23
【问题描述】:

在设备解锁之前在后台访问kSecAttrAccessibleAfterFirstUnlock 项目时是否出现特定错误或行为?

https://developer.apple.com/documentation/security/ksecattraccessibleafterfirstunlock?language=objc

苹果声明:

推荐用于需要后台访问的项目 应用程序。

但是,在某些情况下,系统仍然可以在此之前启动应用程序,不是吗?

【问题讨论】:

    标签: ios security keychain


    【解决方案1】:

    据我所知,返回“错误代码 -25308 (errSecInteractionNotAllowed)”,但我还无法验证。

    来源:https://developer.apple.com/documentation/security/1542001-security_framework_result_codes/errsecinteractionnotallowed?language=objc

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-06-01
      • 2011-07-19
      • 1970-01-01
      • 1970-01-01
      • 2023-03-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多