incubator-callback-dev mailing list archives

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


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

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

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message