iOS 10.3 beta 3 doesn't persist data of KeychainItem

前端 未结 3 2042
借酒劲吻你
借酒劲吻你 2020-12-10 16:14

I have observed behavior of app in iOS 10.2.1 device and iOS 10.3 beta 3 device for https://developer.apple.com/library/content/samplecode/GenericKeychain/Introduction/Intro

3条回答
  •  眼角桃花
    2020-12-10 16:40

    Originally (Since iOS 10.3 beta 1 to 5?) the keychain WAS NOT persisted.

    Apple staff:

    This is an intentional change in iOS 10.3 to protect user privacy. Information that can identify a user should not be left on the device after the app that created it has been removed.


    But since iOS 10.3 beta 6, the keychain IS persisted again.

    Nobody gives you any reassurances it will work that way in the future.

    While it is fine to use it the way we do, I strongly encourage you to write your app so that it acts reasonably if this behaviour change.

提交回复
热议问题