11

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

Krumelur
  • 32,180
  • 27
  • 124
  • 263
  • did you solve this question? I'm under the same situation... – user1447414 Aug 28 '14 at 10:13
  • I'm a newbie to iOS!!!. I have enabled this option and i submitted my app they had rejected with the following review msg " Apps must follow the iOS Data Storage Guidelines or they will be rejected" Can you please guide is they are related. pls reply soon. – Sankar M Jan 30 '15 at 14:00
  • You should ask Apple why they rejected your app. – Krumelur Jan 30 '15 at 19:15

1 Answers1

2
  • 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.

jpulikkottil
  • 666
  • 9
  • 24