Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 10.3 beta 3 doesn't persist data of KeychainItem

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.html

Keychain data is being deleted in iOS 10.3 beta 3. That was still found in earlier versions.

Do we have any alternative to do this?

like image 428
DipakSonara Avatar asked Feb 24 '17 05:02

DipakSonara


2 Answers

Now that 10.3 has been officially released, it's been confirmed by several parties, including in this Apple's developers forum post, that this issue is not present in the final release.

Keychain data is not being deleted upon app's uninstall.

like image 52
Matteo Mecucci Avatar answered Oct 15 '22 17:10

Matteo Mecucci


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.

like image 7
Jakub Truhlář Avatar answered Oct 15 '22 18:10

Jakub Truhlář