Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 15607961A for ; Wed, 18 Apr 2012 00:31:40 +0000 (UTC) Received: (qmail 41696 invoked by uid 500); 18 Apr 2012 00:31:39 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 41665 invoked by uid 500); 18 Apr 2012 00:31:39 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 41656 invoked by uid 99); 18 Apr 2012 00:31:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 00:31:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 00:31:34 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 5A80839AE71 for ; Wed, 18 Apr 2012 00:31:13 +0000 (UTC) Date: Wed, 18 Apr 2012 00:31:13 +0000 (UTC) From: "Shazron Abdullah (Updated) (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1995635078.35510.1334709073372.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <954731545.33672.1334683159907.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CB-522) Support option not to back up local storage to iCloud MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shazron Abdullah updated CB-522: -------------------------------- Fix Version/s: (was: 1.6.1) 1.8.0 > Support option not to back up local storage to iCloud > ----------------------------------------------------- > > Key: CB-522 > URL: https://issues.apache.org/jira/browse/CB-522 > Project: Apache Callback > Issue Type: Improvement > Components: iOS > Affects Versions: 1.6.0 > Reporter: Jacob G > Assignee: Shazron Abdullah > Fix For: 1.8.0 > > Original Estimate: 1h > Remaining Estimate: 1h > > In 1.6.0, PhoneGap/Cordova implemented a workaround for an iOS 5.1 bug dealing with local storage persistence by copying the local storage cache file to a persistent folder. This workaround results in the local storage file to automatically be backed up to iCloud. Developers may not want this file backed up to iCloud is certain scenarios (such as device uniqueness), and there should be an option to not back up to iCloud but yet still maintain persistent integrity on that device. > In code, this can be accomplished by the following: > // Mark Documents folder with special attribute to tell iOS not to back up to iCloud. > const char* cstr = [documentsDirectory UTF8String] ; > const char* attrName = "com.apple.MobileBackup"; > u_int8_t attrValue = 1; > int result = setxattr(cstr, attrName, &attrValue, sizeof(attrValue), 0, 0); // 0 is success, -1 is failure > > if(result != 0){ > NSLog(@"Error: Documents folder could not be set to not backup to iCloud"); > } -- 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