incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "alexander.koerschgen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-347) localStorage / SQLDatabase Error after App update
Date Thu, 03 May 2012 22:50:48 GMT

    [ https://issues.apache.org/jira/browse/CB-347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13267910#comment-13267910
] 

alexander.koerschgen commented on CB-347:
-----------------------------------------

So I just upgraded an app to Cordova-1.7.0 and tried to test data persistence during an iOS
upgrade.

Since I have no iOS 5.0 device at hand, my idea was to launch the application in 5.0 Simulator,
do some stuff which will be written to SQL/LocalStorage and then to copy the installed application
via Finder to the 5.1 Simulator. Then I would proceed to launch the 5.1 Simulator (by running
an empty cordova project from xCode), press the home button and launch the app I just copied.

Unfortunately, all the data is lost. Indeed, everything stored under Library/WebKit is deleted
as soon as the application is launched.

Thus my question is: what is going to happen, when a user (with the cordova-1.7.0-based app
installed) upgrades his iPhone from 5.0 to 5.1? Is the data saved by this fix (and only lost
on the simulator) or will it be lost? And is there any way to test this without having to
downgrade real devices?
                
> localStorage / SQLDatabase Error after App update
> -------------------------------------------------
>
>                 Key: CB-347
>                 URL: https://issues.apache.org/jira/browse/CB-347
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.2.0, 1.3.0, 1.4.0, 1.5.0, 1.6.0, 1.6.1
>         Environment: iOS 5.01
> PhoneGap (Any version)
> Build.PhoneGap
>            Reporter: Urs Zimmermann
>            Assignee: Shazron Abdullah
>            Priority: Blocker
>              Labels: ios5.01, localstorage, phonegap, sqldatabase, websql
>             Fix For: 1.7.0
>
>         Attachments: WebKit-Prefs.zip
>
>
> Hello
> After I update my phonegap app containing values and dates in both localStorage and SQLite
database on iOS 5.1
> -> Call to window.openDatabase fails with "SECURITY_ERR: DOM Exception 18"
> -> Call to localStorage.setItem fails silently
> How to Reproduce:
> In a UIWebView, create a new DB or use localStorage from phonegap API
> Overwrite / update your app and open the same database or write to localStorage
> Expected Results:
> We should see the data from the database and localStorage.
> Actual Results:
> Call to window.openDatabase fails with "SECURITY_ERR: DOM Exception 18"
> Call to localStorage.setItem fails silently
> References:
> https://groups.google.com/forum/#!topic/phonegap/egzXNrBRIbk/discussion
> https://groups.google.com/forum/#!topic/phonegap/jS2IVZcg8HI/discussion
> https://issues.apache.org/jira/browse/CB-330

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

        

Mime
View raw message