I have always been using the best possible data protection in my iOS apps. This means I saved all my files with the flag “available when unlocked, this device only”. Back then this "just worked". Now I have found that there is a new setting when creating an App ID (see screenshot) where I can explicitly enable data protection.
This is how I understand the new option. Can somebody please confirm?
NSFileManager
?Data protection is an iOS feature that you use to secure your app's files and prevent unauthorized access to them. Data protection is enabled automatically when the user sets an active passcode for the device. You read and write your files normally, but the system encrypts and decrypts your content behind the scenes.
Entitlements are special app capabilities and security permissions granted to applications that are correctly configured to use them. In iOS, apps run in a sandbox, which provides a set of rules that limit access between the application and certain system resources or user data.
Check Your Entitlements Files Each target in your app may have its own entitlements file. To locate the entitlements file associated with a particular target, look at the the Code Signing Entitlements file setting inside of the Signing settings displayed in your Build Settings.
You can test it by try to download the application content.
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