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 E99E0991A for ; Tue, 27 Mar 2012 00:06:41 +0000 (UTC) Received: (qmail 25859 invoked by uid 500); 27 Mar 2012 00:06:41 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 25823 invoked by uid 500); 27 Mar 2012 00:06:41 -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 25813 invoked by uid 99); 27 Mar 2012 00:06:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2012 00:06:41 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gregory.kh@gmail.com designates 209.85.212.171 as permitted sender) Received: from [209.85.212.171] (HELO mail-wi0-f171.google.com) (209.85.212.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2012 00:06:37 +0000 Received: by wibhj13 with SMTP id hj13so3699559wib.0 for ; Mon, 26 Mar 2012 17:06:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=DQ9EEzw33J114n/MbIGxIzlv3LAlzhajeyO8rBDHOPY=; b=CuuopLzzLIkWnduh6NAie6fLK5FkjWkVZjFBltZjz0LW7pSTgokEkjStuPlvODFO+W S0riP7/PZ4HLEsw/YAoBZNC2i+ZhEmH1YDF+H8V1dGeQkwBBcwuIV1ZTmkkZg97qr0wE 45CUTH3wywOrX6ub2A6YnHq6RovqK8u25SxYsOXbJm0E5eHea3/0WdAnCbpUrvw2drJh CyF7Exe/5rjRyulyXhUKUS/Q/XLaauUZhswSWvTAmOsccowKhUrJ3OHk0xe43wXKpSYH SPof8prjGP3qeKFv6XRoxQXmFLyNmZlmcKR7o6/fCuuxPP39/SjDvpiJnURWNWK4/+WY 9n6w== Received: by 10.180.96.228 with SMTP id dv4mr22610293wib.14.1332806775564; Mon, 26 Mar 2012 17:06:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.180.80.131 with HTTP; Mon, 26 Mar 2012 17:05:35 -0700 (PDT) In-Reply-To: <1780356010.16690.1332754049866.JavaMail.tomcat@hel.zones.apache.org> References: <1175307527.13830.1331744920676.JavaMail.tomcat@hel.zones.apache.org> <1780356010.16690.1332754049866.JavaMail.tomcat@hel.zones.apache.org> From: Greg Khanlarov Date: Mon, 26 Mar 2012 17:05:35 -0700 Message-ID: Subject: Re: [jira] [Commented] (CB-330) localStorage / SQLDatabase no longer persistent after iOS 5.01 Update To: callback-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=f46d0444047a69691b04bc2e42af X-Virus-Checked: Checked by ClamAV on apache.org --f46d0444047a69691b04bc2e42af Content-Type: text/plain; charset=ISO-8859-1 Hi, I am wondering if Apple will approve apps that overwrite webkit database files. Has anyone submitted such apps and got approved? Thanks, -Greg On Mon, Mar 26, 2012 at 2:27 AM, Daniel (Commented) (JIRA) wrote: > > [ > https://issues.apache.org/jira/browse/CB-330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13238225#comment-13238225] > > Daniel commented on CB-330: > --------------------------- > > Hi Davide! > > Thanks for posting your code here! Although I understand why Shazron > decided to go and implement a more 'Apple compliant fix', I like the idea > of changing the localstorage location itself much more. It feels more > robust compared to going back and forth using backup-data. > > First I put your code in the {code}webViewDidFinishLoad{code} method. > However that was not working for me after restarting the program. Then I > used your code in the {code}didFinishLaunchingWithOptions{code} method > which worked perfectly. > > I did modify one line of your code, because otherwise it creates 2 > localstorage files in the Application/Documents folder: > > {code} > // your code > NSString *ourLocalStorageDb = [documents stringByAppendingPathComponent:@ > "file__0.localstorage"]; > > // changed to > NSString *ourLocalStorageDb = [ourLocalStoragePath > stringByAppendingPathComponent:@"file__0.localstorage"]; > {code} > > > 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-330.zip, LocalStorageTest.zip, README.txt, iOS > WebKit Database Locations.txt > > > > > > Dear Dev > > WebKit data (localstorage or local SQLite) are now stored in Library/ > Caches folder (instead of Library/WebKit folder). This is a big problem for > all apps using UIWebView and storing user data, because they will no longer > be backed up and may be deleted. There are a lot of apps using localstorage > or SQLite as a critical feature. > > The SQLite database gets deleted because the database is saved in a > location on the filesystem which Apple does not consider to contain > persistent data. > > *Steps to Reproduce:* > > In a UIWebView, create a new DB or use localStorage with JavaScript. > > You can see that the WebKit data is now stored in Library/Caches : > > *Expected Results:* > > We should at least specify the directory of WebKit data (and to set it > > to Documents/ for critical data) > > *Actual Results:* > > The WebKit data are stored in Library/Caches folder, and can be > > deleted > > *Regression:* > > To migrate database location from Library/Caches to some other location > such as Documents. > > ---- > > Ref: http://developer.apple.com/icloud/documentation/data-storage/ > > https://devforums.apple.com/thread/137882?start=0&tstart=0 > > -- > 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 > > > --f46d0444047a69691b04bc2e42af--