CoreData data protection without passcode

I understand the requirements for CoreData's Data Protection is to have a device with a passcode enabled. My question is, for users that do not have a passcode enabled what happens? Do all I/O actions still function correctly as far as my App is concerned, however no encryption is taking place? Or must I write different I/O functions if encryption is available vs not available due to no passcode?


Thanks


Steven

Replies

The Core Data data protection option is just forwarding to the regular iOS data protection settings, so it’s going to work the same way. So your I/O operations are going to be the same whether the user has a passcode on their device.


On the other hand, if you turn on data protection it is really important that you handle the protected data availability messages, and you may want to consider dividing your information in two—private stuff to put into a protected data store, and non-confidential info to put into a non-protected data store.