Is there any way to detect if the launch is from a iCloud backup? (restored)
I have looked here but there is nothing about it.
Their rules about what is allowed to backup is very strict(rejected multiple times for it) backing a database up, with just one user-generated change in it - now I have to back the data up somewhere else and reinsert it on restore from backup.
https://developer.apple.com/documentation/security/ksecattraccessiblealwaysthisdeviceonly
Keychain items can be marked as not to be backed up by using one of the accessible attribute with “ThisDeviceOnly”.
You could write a flag to NSUserDefaults and Keychain (Using kSecAttrAccessibleAlwaysThisDeviceOnly), whenever the keychain item is missing but the user defaults value is present (or a backed up keychain item) then it must have been restored from backup. Be aware of secure and not secure iTunes backups as a scenario too. Insecure backups shouldn’t have any keychain items.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With