Skip to content

app rejected "2.23 Apps must follow the iOS Data Storage Guidelines" #26

@alexkemp

Description

@alexkemp

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions