I implemented the SQLitePlugin and my app got rejected because Apple says it didn't follow the iOS Data Storage Guidelines, mainly I think because the database is stored in the Documents folder.
I followed their technical page and included a "do not backup attribute" so the data don't get backed up by iCloud:
/**
- do not backup attribute
*/
- (BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL
{
assert([[NSFileManager defaultManager] fileExistsAtPath: @"myDatabase.sqlite3"]);
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;
}
/**
- end do not backup attribute
*/
I resubmitted the app and still got rejected with the same reason (with no further details).
Have folks encountered this issue and how to resolve?
Appreciate any advice as I'm pressing to get this app submitted.
xcode 4.3.2
PhoneGap v1.4.1
I implemented the SQLitePlugin and my app got rejected because Apple says it didn't follow the iOS Data Storage Guidelines, mainly I think because the database is stored in the Documents folder.
I followed their technical page and included a "do not backup attribute" so the data don't get backed up by iCloud:
/**
*/
{
}
/**
*/
I resubmitted the app and still got rejected with the same reason (with no further details).
Have folks encountered this issue and how to resolve?
Appreciate any advice as I'm pressing to get this app submitted.
xcode 4.3.2
PhoneGap v1.4.1