Vote count:
0
My app got rejected from apple for three times for the below issue,
My app was using offline purpose, so am storing the downloaded files in our document directory, so as per Apple suggestion am calling the method for backup key disabling process for an every document directory calling process, even though my app got rejected from apple now also,
Apple Statement for my app rejection is as follows, 2.23 - Apps must follow the iOS Data Storage Guidelines or they will be rejected Thank you for making these modifications. Upon further review, we found that your app is not in compliance with our guidelines.
2.23 Details
On launch and content download, your app stores 27.78 MB, which does not comply with the iOS Data Storage Guidelines.
Next Steps
Please verify that only the content that the user creates using your app, e.g., documents, new files, edits, etc. is backed up by iCloud as required by the iOS Data Storage Guidelines. Also, check that any temporary files used by your app are only stored in the /tmp directory; please remember to remove or delete the files stored in this location when it is determined they are no longer needed.
Data that can be recreated but must persist for proper functioning of your app - or because users expect it to be available for offline use - should be marked with the "do not back up" attribute. For NSURL objects, add the NSURLIsExcludedFromBackupKey attribute to prevent the corresponding file from being backed up. For CFURLRef objects, use the corresponding kCRUFLIsExcludedFromBackupKey attribute.
Please help me on this.
Please find my code for back up key process enabling from below.
Please find my below code ( which is using for back up key disabling process )
(BOOL)addSkipBackupAttributeToItemAtURL:(NSURL )URL { if (&NSURLIsExcludedFromBackupKey == nil) { // iOS <= 5.0.1 const char filePath = [[URL path] fileSystemRepresentation]; const char* attrName = "com.apple.MobileBackup"; u_int8_t attrValue = 1; int result = setxattr(filePath, attrName, &attrValue, sizeof(attrValue), 0, 0); return result == 0; }else { // iOS >= 5.1 NSLog(@"DB Back up called : DB path : %@",URL); NSError *error = nil; [URL setResourceValue:[NSNumber numberWithBool:YES] forKey:NSURLIsExcludedFromBackupKey error:&error]; return error == nil; } }
App rejected for my resubmitted version of iPad applicaiton
Aucun commentaire:
Enregistrer un commentaire