You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Adam George (JIRA)" <ji...@apache.org> on 2013/07/03 00:22:20 UTC
[jira] [Commented] (CB-456) Localstorage across program runs seems
impossible in the Mac
[ https://issues.apache.org/jira/browse/CB-456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13698323#comment-13698323 ]
Adam George commented on CB-456:
--------------------------------
I was able to get localStorage working in an OSX app. But I used MacGap (a fork of Phonegap)
I had to tinker around a bit:
http://stackoverflow.com/questions/10609644/localstorage-not-persisting-in-osx-app-xcode-4-3
I also had to use a private API `_setLocalStorageDatabasePath`, so don't know how that will go down with the approval process. I'll find out after I submit I guess.
Would be good to see a proper fix for this in Cordova.
> Localstorage across program runs seems impossible in the Mac
> ------------------------------------------------------------
>
> Key: CB-456
> URL: https://issues.apache.org/jira/browse/CB-456
> Project: Apache Cordova
> Issue Type: Bug
> Components: OSX
> Reporter: Shazron Abdullah
> Priority: Minor
> Labels: audit
>
> Reported by: Ray Wang https://github.com/winterlightning
> The biggest problem I ran into developing in cocoa webkit is this: (I asked the first question)
> http://stackoverflow.com/questions/8594822/how-do-you-set-localstorage-so-it-persist-across-program-runs
> http://stackoverflow.com/questions/8198453/local-storage-in-webview-is-not-persistent
> If someone has a proof of concept where localstorage actually works in cocoa webkit that would be great
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira