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

ASF subversion and git services commented on CB-4319:
-----------------------------------------------------

Commit 806ed0575ce578d52e1f42828f049913fbcb6081 in cordova-osx's branch 
refs/heads/master from [~tri...@adobe.com]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-osx.git;h=806ed05 ]

CB-4319 localStorage database is relocated when restarting app on OSX

fixes:
- initialize web storage earlier
- read location from config.xml
- add fallback with bundleId if missing
- add missing placeholders in config.xml template

Signed-off-by: Shazron Abdullah <shaz...@apache.org>


> localStorage database is relocated when restarting app on OSX
> -------------------------------------------------------------
>
>                 Key: CB-4319
>                 URL: https://issues.apache.org/jira/browse/CB-4319
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: OSX
>    Affects Versions: 2.9.0
>         Environment: OSX
>            Reporter: Adam George
>            Assignee: Tobias Bocanegra
>              Labels: localStorage, osx
>
> There are still issues with the localStorage database on OSX.
> There is a recent ticket which dealt with a similar issue, and says that the 
> localStorage changes are now persisting on OSX:
> https://issues.apache.org/jira/browse/CB-456
> However, in my tests, the localStorage is still not working correctly. There 
> appears to be a bug where when restarting the app, the localStorage database 
> is relocated on the filesystem.
> This is my test case:
>     1) Start new Cordova-OSX 2.9.0 app. When starting the app, the 
> localStorage datafile exists at ~/Library/Application 
> Support/myapp/file__0.localstorage
>     2) Make some changes to localStorage in my app. I can open 
> file__0.localstorage in SQLite, and see that those changes are there.
>     3) Close app. Stop X-Code. Changes in file__0.localstorage are still 
> there.
>     4) Restart app. App can read my localStorage changes when it boots. 
> HOWEVER, I notice that the  ~/Library/Application 
> Support/myapp/file__0.localstorage file is now missing from the filesystem...
>        If I make any changes to localStorage, those changes are being written 
> somewhere... but not into the ~/Library/Application 
> Support/myapp/file__0.localstorage
>     5) Restart app again. App generates a new db in ~/Library/Application 
> Support/myapp/file__0.localstorage, and the changes that I did in 2) are now 
> lost.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to