"In particular, we found that on launch and/or content download, your app stores 12.08 MB. To check how much data your app is storing:
- Install and launch your app
- Go to Settings > iCloud > Storage & Backup > Manage Storage
- If necessary, tap "Show all apps"
- Check your app's storage
The iOS Data Storage Guidelines indicate that only content that the user creates using your app, e.g., documents, new files, edits, etc., should be backed up by iCloud. "
The following code is the Apple suggestion as to how to stop data being included in the iCloud Backup...
- (BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL
{
assert([[NSFileManager defaultManager] fileExistsAtPath: [URL path]]);
NSError *error = nil;
BOOL success = [URL setResourceValue: [NSNumber numberWithBool: YES]
forKey: NSURLIsExcludedFromBackupKey error: &error];
if(!success){
NSLog(@"Error excluding %@ from backup %@", [URL lastPathComponent], error);
}
return success;
}
Firstly has anyone else had this problem?
Secondly has anyone implemented this code on CDL databases? (I am not sure where to point the URL).
Thanks in advance.
Mike
Secondly has anyone implemented this code on CDL databases? (I am not sure where to point the URL).
I know this thread is a bit old, but I thought I would resurrect it. I also just submitted my app to the app store, and was rejected for the same reason. The app comes with a couple of databases, and on launch uses the CBLManager move mechanism and places those databases in the Application Support directory where all the CBL databases are. I store no data in my Documents directory during the lifetime of the app.
Oh interesting, I didn't know that. Hmm, is it possible to store some databases in different locations than other databases? Can I have my user database in Application Support/Couchbase, but the other databases in Application Support/Other and mark the Other directory as to be excluded?