Apple testers have been rejected our app due violating of guideline:
[2.23 Apps must follow the iOS Data Storage Guidelines or they will be rejected]
Since we have stored our database files without the NSURLIsExcludedFromBackupKey
flag - it was backed up in the iCloud - and caused the reject.
So, we added the NSURLIsExcludedFromBackupKey
flag to our files, and it decreased the amount of data stored in the iCloud.
BUT - we realized that NSUserDefaults also takes some amount of space in the iCloud.
We are using [NSUserDefaults standardUserDefaults]
and we don't have much control of it.
If we go to device->settings->iCloud->Storage
& BackUP->Manage Storage
, we can see that our app still takes 0.5 kb of data in the iCloud, because of using NSUserDefaults.
(removing the uses of NSUserDefaults in the code will decrease it to 0 - no data)
Will Apple reject our app again for the NSUserDefaults takes data in the iCloud?
You can use any amount of data in NSUserDefaults in your app and you will not get rejected. I'm not sure what the max data is for it, but I don't recall Apple specifying a limit. There is however a limit to the iCloud defaults settings. You can back up your NSUserDefaults to iCloud, but there is a strict 1Mb limit for data saved there. So be mindful of how large your data gets when saved there.
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