You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Lee Crossley (Created) (JIRA)" <ji...@apache.org> on 2012/04/10 11:04:13 UTC

[jira] [Created] (CB-471) LocalFileSystem.PERSISTENT "do not back up" file attribute iOS

LocalFileSystem.PERSISTENT "do not back up" file attribute iOS
--------------------------------------------------------------

                 Key: CB-471
                 URL: https://issues.apache.org/jira/browse/CB-471
             Project: Apache Callback
          Issue Type: Bug
            Reporter: Lee Crossley


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

        

[jira] [Commented] (CB-471) LocalFileSystem.PERSISTENT "do not back up" file attribute iOS

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13397734#comment-13397734 ] 

Shazron Abdullah commented on CB-471:
-------------------------------------

@cristophe no, we don't absolutely guarantee any mapping to an iOS feature - so it's ok. We can possibly change this in 2.0, but we are not changing an already released API feature until a major version.
                
> 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.9.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

        

[jira] [Commented] (CB-471) LocalFileSystem.PERSISTENT "do not back up" file attribute iOS

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13397616#comment-13397616 ] 

Shazron Abdullah commented on CB-471:
-------------------------------------

That new function wasn't there in the technote when I implemented this - Apple must have updated this recently. We definitely want to update the implementaton. Re-opening for 1.9.0.
                
> 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.9.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

        

[jira] [Commented] (CB-471) LocalFileSystem.PERSISTENT "do not back up" file attribute iOS

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13285235#comment-13285235 ] 

Shazron Abdullah commented on CB-471:
-------------------------------------

Yes it will - that's why it was fixed. You'll have to set it through the API, for any file or folder that you want.
                
> 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

        

[jira] [Commented] (CB-471) LocalFileSystem.PERSISTENT "do not back up" file attribute iOS

Posted by "Lee Crossley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13268206#comment-13268206 ] 

Lee Crossley commented on CB-471:
---------------------------------

Essentially, we should be able to specify if a file is to be backed up or not (possibly when calling  window.requestFileSystem). In my workaround, I'm creating a directory, setting the attribute on it and saving files I don't want backed up in there.

There is also a problem with the way you back up web sqlite databases - is also backed up on iCloud. If non-critical data is stored in there this is incorrect and apps will be rejected. This should be configurable.
                
> LocalFileSystem.PERSISTENT "do not back up" file attribute iOS
> --------------------------------------------------------------
>
>                 Key: CB-471
>                 URL: https://issues.apache.org/jira/browse/CB-471
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Lee Crossley
>             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

        

[jira] [Commented] (CB-471) LocalFileSystem.PERSISTENT "do not back up" file attribute iOS

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13285304#comment-13285304 ] 

Shazron Abdullah commented on CB-471:
-------------------------------------

We're prepping 1.8.0rc1 today. You'll have to visit PhoneGap.com and/or its blogs for the announcement.
                
> 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

        

[jira] [Updated] (CB-471) LocalFileSystem.PERSISTENT "do not back up" file attribute iOS

Posted by "Filip Maj (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj updated CB-471:
-------------------------

    Component/s: iOS

Mayhaps Shaz can take a look
                
> LocalFileSystem.PERSISTENT "do not back up" file attribute iOS
> --------------------------------------------------------------
>
>                 Key: CB-471
>                 URL: https://issues.apache.org/jira/browse/CB-471
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Lee Crossley
>
> 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

        

[jira] [Resolved] (CB-471) LocalFileSystem.PERSISTENT "do not back up" file attribute iOS

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah resolved CB-471.
---------------------------------

    Resolution: Fixed

Fix commit - http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/32612280
                
> 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.9.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

        

[jira] [Updated] (CB-471) LocalFileSystem.PERSISTENT "do not back up" file attribute iOS

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-471:
--------------------------------

    Fix Version/s: 1.8.0
    
> LocalFileSystem.PERSISTENT "do not back up" file attribute iOS
> --------------------------------------------------------------
>
>                 Key: CB-471
>                 URL: https://issues.apache.org/jira/browse/CB-471
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Lee Crossley
>             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

        

[jira] [Commented] (CB-471) LocalFileSystem.PERSISTENT "do not back up" file attribute iOS

Posted by "Jonathan Stevens (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13285187#comment-13285187 ] 

Jonathan Stevens commented on CB-471:
-------------------------------------

I second Lee's question. Will this fix the websql and localstorage backup issues?  My app got rejected because of the automatic backup process saving files where iCloud backed them up.  I am having to custom-build Cordova for now in order to add the NSURLIsExcludedFromBackupKey attribute to the backup file.
                
> 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

        

[jira] [Commented] (CB-471) LocalFileSystem.PERSISTENT "do not back up" file attribute iOS

Posted by "christophe benoit (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13397720#comment-13397720 ] 

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

Though the name 'com.apple.MobileBackup' will be misleading as it won't actually be setting this parameter (or people will wonder if 1.9.0 is not using this deprecated feature). There also might be nuances between those two methods other than their primary goal (to say 'do not backup'), so the old name (com.apple.MobileBackup) will favour this misconception.

Don't you think the JS property name also should change to something more in the lines of 'NSURLIsExcludedFromBackupKey'? - there could also be a backward compability 'com.apple.MobileBackup' property still kept by cordova API, but defined as deprecated in the documentation.
                
> 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.9.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

        

[jira] [Commented] (CB-471) LocalFileSystem.PERSISTENT "do not back up" file attribute iOS

Posted by "Lee Crossley (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13250819#comment-13250819 ] 

Lee Crossley commented on CB-471:
---------------------------------

I have created a work around for now, posted here: http://stackoverflow.com/questions/10085653/phonegap-cordova-1-5-ios-do-not-back-up-file-attribute
                
> LocalFileSystem.PERSISTENT "do not back up" file attribute iOS
> --------------------------------------------------------------
>
>                 Key: CB-471
>                 URL: https://issues.apache.org/jira/browse/CB-471
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Lee Crossley
>
> 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

        

[jira] [Commented] (CB-471) LocalFileSystem.PERSISTENT "do not back up" file attribute iOS

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13270720#comment-13270720 ] 

Shazron Abdullah commented on CB-471:
-------------------------------------

By consensus - the devs have agreed to add a setMetadata option on the FileEntry object. Implementing.
                
> 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
>             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

        

[jira] [Commented] (CB-471) LocalFileSystem.PERSISTENT "do not back up" file attribute iOS

Posted by "christophe benoit (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13397654#comment-13397654 ] 

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

Cool, thanks for looking into this.

For cordova users this might mean a different way of actually setting the preference, so it might be useful to add a note to the 1.8.x documentation about it (so that people using this new feature are warned about a future change).
                
> 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.9.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

        

[jira] [Commented] (CB-471) LocalFileSystem.PERSISTENT "do not back up" file attribute iOS

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13267116#comment-13267116 ] 

Shazron Abdullah commented on CB-471:
-------------------------------------

@Lee What do you suggest on how the API should work? What would you expect?
                
> LocalFileSystem.PERSISTENT "do not back up" file attribute iOS
> --------------------------------------------------------------
>
>                 Key: CB-471
>                 URL: https://issues.apache.org/jira/browse/CB-471
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Lee Crossley
>             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

        

[jira] [Updated] (CB-471) LocalFileSystem.PERSISTENT "do not back up" file attribute iOS

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-471:
--------------------------------

    Fix Version/s:     (was: 1.8.0)
                   1.9.0

See updated Apple technote to handle it for iOS 5.1 or greater. The current way has been deprecated.
                
> 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.9.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

        

[jira] [Commented] (CB-471) LocalFileSystem.PERSISTENT "do not back up" file attribute iOS

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13397699#comment-13397699 ] 

Shazron Abdullah commented on CB-471:
-------------------------------------

Actually the JS interface will still be the same, it will be transparent to the user.
                
> 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.9.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

        

[jira] [Commented] (CB-471) LocalFileSystem.PERSISTENT "do not back up" file attribute iOS

Posted by "Jonathan Stevens (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13285299#comment-13285299 ] 

Jonathan Stevens commented on CB-471:
-------------------------------------

Then I assume I would just set the attribute on the Backups directory, right?  

I need to resubmit my app for review ASAP.  I have a custom build of Cordova that fixes the issue, but I'd rather submit with 1.8 if it's done on time.  Any ideas as to when we might see 1.8?
                
> 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

        

[jira] [Commented] (CB-471) LocalFileSystem.PERSISTENT "do not back up" file attribute iOS

Posted by "christophe benoit (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Comment Edited] (CB-471) LocalFileSystem.PERSISTENT "do not back up" file attribute iOS

Posted by "Jonathan Stevens (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13285187#comment-13285187 ] 

Jonathan Stevens edited comment on CB-471 at 5/29/12 10:17 PM:
---------------------------------------------------------------

I second Lee's comment. Will this fix the websql and localstorage backup issues?  My app got rejected because of the automatic backup process saving files where iCloud backed them up.  I am having to custom-build Cordova for now in order to add the NSURLIsExcludedFromBackupKey attribute to the backup file.
                
      was (Author: jmsgofish):
    I second Lee's question. Will this fix the websql and localstorage backup issues?  My app got rejected because of the automatic backup process saving files where iCloud backed them up.  I am having to custom-build Cordova for now in order to add the NSURLIsExcludedFromBackupKey attribute to the backup file.
                  
> 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

        

[jira] [Comment Edited] (CB-471) LocalFileSystem.PERSISTENT "do not back up" file attribute iOS

Posted by "christophe benoit (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13397370#comment-13397370 ] 

christophe benoit edited comment on CB-471 at 6/20/12 9:24 AM:
---------------------------------------------------------------

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 looks 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?
                
      was (Author: chrisben):
    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

        

[jira] [Resolved] (CB-471) LocalFileSystem.PERSISTENT "do not back up" file attribute iOS

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah resolved CB-471.
---------------------------------

    Resolution: Fixed
      Assignee: Shazron Abdullah

Fix commits:
http://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=commit;h=c6dc03acfee633c4ea84e0bc6a94e92a2d2993ef

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/8b369515
                
> 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

        

[jira] [Reopened] (CB-471) LocalFileSystem.PERSISTENT "do not back up" file attribute iOS

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah reopened CB-471:
---------------------------------

    
> 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.9.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