app store - How to understand iOS "Documents and data" (related to cloud backup) -
my app rejected apple because said doesn't follow "ios info storage guidelines."
i have updated app next code flag downloaded content isn't backed cloud...
- (bool)addskipbackupattributetoitematpath:(nsstring *)filepathstring { nsurl *fileurl = [nsurl fileurlwithpath:filepathstring]; nslog(@"going add together skip attribute " @"%@", filepathstring); assert([[nsfilemanager defaultmanager] fileexistsatpath: [fileurl path]]); nserror *error = nil; bool success = [fileurl setresourcevalue:[nsnumber numberwithbool: yes] forkey: nsurlisexcludedfrombackupkey error: &error]; nslog(@"added skip attribute " @"%@", filepathstring); homecoming success; } however, when check settings -> general -> usage -> myapp, displays "documents , data" > 30mb. right point of view 30mb of content has been downloaded app, mean these 30mb backed cloud?
put in way, if flag files not backed up, included or excluded "documents , data" value?
cheers!
data user created or private user , must not disappear should in documents directory. also, info valuable user , cannot recreated should in documents directory. files in documents directory automatically backed icloud.
data downloaded net should saved caches directory, because can redownloaded again, , makes no sense save them icloud. info occupy space in icloud. if user needs restore device, app can redownload info wherever downloaded in first place. caches directory can wiped operating scheme if amount of free space on hard disk becomes low.
there special case, files saved in documents directory nsurlisexcludedfrombackupkey flag set. intended info valuable user , should available @ time, when no net connection present, - on other hand - can redownloaded or updated whenever needed.
contained in icloud backup contents of documents directory excluding files have nsurlisexcludedfrombackupkey flag set. other directories lie within app container not backed up.
the "documents , data" in settings refer size of documents folder. calculation doesn't take business relationship if excluded icloud backup. size not refer size of info in icloud backup. however, if settings.app says "30mb", can sure icloud backup @ to the lowest degree not greater 30mb.
ios app-store backup icloud
No comments:
Post a Comment