What is the entitlement "Data Protection" good for when creating an Apple App ID?
Asked Answered
K

1

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

Kandace answered 29/4, 2014 at 17:20 Comment(3)
did you solve this question? I'm under the same situation...Chantry
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.Fist
You should ask Apple why they rejected your app.Kandace
C
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.

Cheiro answered 18/11, 2014 at 8:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.