Question

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?

  • If it is enabled it seems as if all files inside the documents folder will be protected automatically using the selected protection mode. Correct?
  • If it is disabled, can I still set the flags using NSFileManager?

enter image description here

Was it helpful?

Solution

  • If it is enabled it seems as if all files inside the documents folder will be protected automatically using the selected protection mode. Correct? - YES
  • If it is disabled, can I still set the flags using NSFileManager? - YES
  • if it is enabled, can I still set the flags using NSFileManager? - YES

You can test it by try to download the application content.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top