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 5398B90A7 for ; Wed, 21 Mar 2012 04:17:12 +0000 (UTC) Received: (qmail 97072 invoked by uid 500); 21 Mar 2012 04:17:11 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 96916 invoked by uid 500); 21 Mar 2012 04:17:11 -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 96887 invoked by uid 99); 21 Mar 2012 04:17:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Mar 2012 04:17:10 +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, 21 Mar 2012 04:17:07 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DA881CD50E for ; Wed, 21 Mar 2012 04:16:45 +0000 (UTC) Date: Wed, 21 Mar 2012 04:16:45 +0000 (UTC) From: "Emile khattar (Commented) (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <825063820.40088.1332303406134.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1175307527.13830.1331744920676.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CB-330) localStorage / SQLDatabase no longer persistent after iOS 5.01 Update MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CB-330?page=3Dcom.atlassian.jir= a.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13234071= #comment-13234071 ]=20 Emile khattar commented on CB-330: ---------------------------------- @edgar, if you read the code of the plugin you will see that logically no d= ata should be lost at all. // onAppTerminate is fired on UIApplicationWillTerminateNotification [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(o= nAppTerminate) name:UIApplicationWillTerminateNotification object:nil]; http://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UIApp= licationDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/UI= ApplicationDelegate/applicationWillTerminate: This method lets your application know that it is about to be terminated an= d purged from memory entirely. You should use this method to perform any fi= nal clean-up tasks for your application, such as freeing shared resources, = saving user data, invalidating timers, and storing enough application state= to reconstitute your application=E2=80=99s interface when it is relaunched= . Your implementation of this method has approximately five seconds to perf= orm any tasks and return. If the method does not return before time expires= , the system may kill the process altogether.=20 five seconds should be enough i think So in theory this fixed should be good to support people who are using loca= lStorage and Sql storage. And the problem i had should be to the error i did by placing the plugin ca= ll in the wrong place. However i agree with you having some sort of a "natural" persistent storage= =20 thanks everyone =20 > localStorage / SQLDatabase no longer persistent after iOS 5.01 Update > --------------------------------------------------------------------- > > Key: CB-330 > URL: https://issues.apache.org/jira/browse/CB-330 > Project: Apache Callback > Issue Type: Bug > Components: iOS > Affects Versions: 1.3.0, 1.4.0, 1.5.0 > Environment: iOS 5.01 > PhoneGap (Any version) > Xcode 4 > Build.PhoneGap > Reporter: Amirudin Bin Mohamed Ghani > Assignee: Shazron Abdullah > Priority: Blocker > Labels: ios5.01, localstorage, sqldatabase, websql > Fix For: 1.6.0 > > Attachments: CDVLocalStoragePlugin.zip, Directory-Structure-CB-33= 0.zip, LocalStorageTest.zip, iOS WebKit Database Locations.txt > > > Dear Dev > WebKit data (localstorage or local SQLite) are now stored in Library/ Cac= hes folder (instead of Library/WebKit folder). This is a big problem for al= l apps using UIWebView and storing user data, because they will no longer b= e backed up and may be deleted. There are a lot of apps using localstorage = or SQLite as a critical feature.=20 > The SQLite database gets deleted because the database is saved in a locat= ion on the filesystem which Apple does not consider to contain persistent d= ata. > *Steps to Reproduce:*=20 > In a UIWebView, create a new DB or use localStorage with JavaScript.=20 > You can see that the WebKit data is now stored in Library/Caches : =20 > *Expected Results:* > We should at least specify the directory of WebKit data (and to set it=20 > to Documents/ for critical data)=20 > *Actual Results:*=20 > The WebKit data are stored in Library/Caches folder, and can be=20 > deleted=20 > *Regression:* > To migrate database location from Library/Caches to some other location s= uch as Documents. > ---- > Ref: http://developer.apple.com/icloud/documentation/data-storage/ > https://devforums.apple.com/thread/137882?start=3D0&tstart=3D0 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira