this was pseudocode :) I like not mapping names - will be SO much easier definitely, we can leave it up to the user, but this will open up more than the iCloud attribute to be set, but if they want to play with fire...
On 2012-05-08, at 10:13 AM, Patrick Mueller <[email protected]> wrote: > On Mon, May 7, 2012 at 11:07 PM, Shazron <[email protected]> wrote: > >> Oops, more like: >> >> var metadata = { 'icloud_backup' : true }; >> cordova.exec(success, fail, "File", "setMetadata", [this.fullPath, >> metadata]); >> > > generally +1. Only quibble is with the metadata property name. The actual > name to use on iOS is "com.apple.MobileBackup". I wonder if we should > actually use that, instead of your suggested name. It's not like Apple has > changed their "cloud" name 4 times or so over the years :-) Seems a little > more obvious than having to map the name back and forth, and if ever have > to add more of these ... > > -- > Patrick Mueller > http://muellerware.org
