[ 
https://issues.apache.org/jira/browse/CB-471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13397370#comment-13397370
 ] 

christophe benoit commented on CB-471:
--------------------------------------

I had a look at the first commit (CDVFile.m file) and it's using a now 
deprecated method to set the 'do not backup' attribute according to:
http://developer.apple.com/library/ios/#qa/qa1719/_index.html

"Warning The code that follows has been deprecated and should only be used on 
iOS 5.0.1 or earlier. When running in iOS 5.1, apps should use the NSURL and 
CFURL keys described above."

I guess you want to keep backward compatibility with ios 5.0.1 and earlier, but 
in the case of iOS forward compatibility look more important as most devices 
are up to date. with iOS 6 coming soon, this fix looks already obsolete.

Wouldn't that be possible to use the new methods when available, and fallback 
to the old method if necessary?
                
> LocalFileSystem.PERSISTENT "do not back up" file attribute iOS
> --------------------------------------------------------------
>
>                 Key: CB-471
>                 URL: https://issues.apache.org/jira/browse/CB-471
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Lee Crossley
>            Assignee: Shazron Abdullah
>             Fix For: 1.8.0
>
>
> According to the developer documentation on Apple's website: 
> https://developer.apple.com/library/ios/#qa/qa1719/_index.html
> Starting in iOS 5.0.1 a new "do not back up" file attribute has been 
> introduced allowing developers to clearly specify which files should be 
> backed up. (com.apple.MobileBackup)
> Persistance is easily achievable (LocalFileSystem.PERSISTENT) but there seems 
> to be no way of specifying if a saved file is not backed up to the iCloud or 
> not.
> Apps may be rejected by Apple (depending on the data) if the "do not back up" 
> file attribute is not set.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to